diff --git a/functions/demo-web/src/main.js b/functions/demo-web/src/main.js index a6669f5..6d50b6b 100644 --- a/functions/demo-web/src/main.js +++ b/functions/demo-web/src/main.js @@ -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)