import express from 'express' const app = express() import routes from './routes/api.js' app.use(express.json()) // <-- app.use('/api', routes) const PORT = 8000 app.listen(PORT, () => { console.log(`Server running on port ${PORT}`) })