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());
|
|
|
|
|
|
|
|
|
2024-11-11 10:47:18 +00:00
|
|
|
// 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
|
|
|
|
2024-10-24 12:16:44 +00:00
|
|
|
|
2024-11-06 19:58:29 +00:00
|
|
|
export default app;
|