This commit is contained in:
parent
51785f0853
commit
02b5394d7a
1 changed files with 6 additions and 0 deletions
|
@ -9,6 +9,12 @@ export default async ({ req, res, log, error }) => {
|
||||||
return res.send('Hello, World!');
|
return res.send('Hello, World!');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case "test-route":
|
||||||
|
return res.send("This is a new route, deployed with Forgejo Actions", 200, {
|
||||||
|
"content-type": "text/html"
|
||||||
|
});
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return res.send("Invalid route", 404)
|
return res.send("Invalid route", 404)
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue