2024-06-18 23:37:47 +03:00

16 lines
316 B
TypeScript

import express from 'express';
import bodyParser from 'body-parser';
import routes from './route';
const app = express();
const port = process.env.PORT || 3000;
app.use(bodyParser.json());
app.use('/api', routes);
app.listen(port, () => {
console.log(`Server running on port ${port}`);
});
export default app;