mirror of
https://github.com/sakaljurgis/best-choice.git
synced 2026-07-08 21:47:40 +00:00
13 lines
311 B
TypeScript
13 lines
311 B
TypeScript
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;
|