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