forked from ryanmwangi/CalMerger
15 lines
300 B
JavaScript
15 lines
300 B
JavaScript
import express from 'express';
|
|
import path from 'path';
|
|
import routes from './src/routes.js';
|
|
|
|
const app = express();
|
|
app.use(express.json());
|
|
|
|
|
|
// Serve static files from the 'public' directory
|
|
app.use(express.static(path.join(process.cwd(), 'public')));
|
|
app.use('/', routes);
|
|
|
|
|
|
export default app;
|