1
0
Fork 0
CalMerger/server.js

15 lines
300 B
JavaScript
Raw Normal View History

2024-09-30 12:55:03 +00:00
import express from 'express';
2024-10-24 12:02:01 +00:00
import path from 'path';
2024-11-11 16:57:56 +00:00
import routes from './src/routes.js';
2024-09-30 12:55:03 +00:00
const app = express();
app.use(express.json());
// Serve static files from the 'public' directory
app.use(express.static(path.join(process.cwd(), 'public')));
2024-11-11 16:57:56 +00:00
app.use('/', routes);
2024-09-30 12:55:03 +00:00
export default app;