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