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 "/":
|
case "/":
|
||||||
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)
|
||||||
|
|
Loading…
Reference in a new issue