From 2ad00a1a506ba2d525fb7c8438319f6ca39c7be8 Mon Sep 17 00:00:00 2001 From: quirinecker Date: Wed, 18 Jun 2025 14:28:39 +0200 Subject: [PATCH] added public route for demonstration --- backend/src/main.ts | 4 ++++ web/pages/index.vue | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/backend/src/main.ts b/backend/src/main.ts index 26c2d27..65ac041 100644 --- a/backend/src/main.ts +++ b/backend/src/main.ts @@ -17,6 +17,10 @@ app.use(express.json()) app.use(cors()) app.use(clerkMiddleware()) +app.get('/public', (_, res) => { + res.send('public route accessed'); +}); + app.get('/identify-yourself', requireAuth(), (req, res) => { const auth = getAuth(req) diff --git a/web/pages/index.vue b/web/pages/index.vue index d0da3b5..a8de8db 100644 --- a/web/pages/index.vue +++ b/web/pages/index.vue @@ -1,6 +1,7 @@