mirror of
https://github.com/sakaljurgis/best-choice.git
synced 2026-07-09 05:57:40 +00:00
1st approach for projects, items, db structure
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
import express from 'express';
|
||||
import apiRouter from './routes/api-router.js';
|
||||
import { env } from './config/env.js';
|
||||
import { errorHandler } from './middleware/error-handler.js';
|
||||
|
||||
const app = express();
|
||||
|
||||
app.use(express.json());
|
||||
app.use(env.apiBasePath, apiRouter);
|
||||
app.use(errorHandler);
|
||||
|
||||
export default app;
|
||||
|
||||
Reference in New Issue
Block a user