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 };