From b852a95dcd1a0939c98cbc9e3de8466f561ff728 Mon Sep 17 00:00:00 2001 From: Josh Moore Date: Mon, 17 Jul 2023 19:40:34 -0600 Subject: [PATCH] feat: added empty API router --- backend/app.ts | 1 + backend/routers/api.ts | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 backend/routers/api.ts diff --git a/backend/app.ts b/backend/app.ts index cb6aece..e30b3c7 100644 --- a/backend/app.ts +++ b/backend/app.ts @@ -103,6 +103,7 @@ async function main() { // Routing app.use('/setup', (await import('./routers/setup')).router); + app.use('/api', (await import('./routers/api')).router); app.use('/', (await import('./routers/index')).router); // Host app diff --git a/backend/routers/api.ts b/backend/routers/api.ts new file mode 100644 index 0000000..b2262ee --- /dev/null +++ b/backend/routers/api.ts @@ -0,0 +1,5 @@ +import { Router, json as BodyParserJson } from 'express'; + +const router = Router({ caseSensitive: true }); + +export { router };