ecomm/src/index.ts

18 lines
252 B
TypeScript
Raw Normal View History

import express from 'express';
2023-06-08 15:50:54 +00:00
import userRoutes from './routes/user';
const app = express();
2023-06-08 15:50:54 +00:00
const PORT = 3000;
app.use(express.json());
2023-06-08 15:50:54 +00:00
app.use('/users', userRoutes);
app.listen(PORT, () => {
console.log('Server started on port 3000!');
})