import express from 'express';
import routes from './routes/routesIndex'

const app = express();
const port = 3000;


// app.get('/api', (req, res) => {
//     res.send('welcome to api');
// })

app.use('/api', routes)

// start Express server

app.listen(port, () => {
    console.log(`server started at http://localhost:${port}`);
})


