new /test-route route
All checks were successful
/ test (push) Successful in 16s

This commit is contained in:
Dovi Cowan 2024-07-26 01:10:10 +01:00
parent 51785f0853
commit 02b5394d7a
Signed by: dcowan
GPG key ID: CC4A4CB950D7E579

View file

@ -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)