From 02b5394d7a7eb2336703c17724a726a0a269513c Mon Sep 17 00:00:00 2001 From: Dovi Cowan Date: Fri, 26 Jul 2024 01:10:10 +0100 Subject: [PATCH] new /test-route route --- functions/demo-web/src/main.js | 6 ++++++ 1 file changed, 6 insertions(+) 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)