require('dotenv').config() const express = require('express') const app = express() const userRouter = require('./api/users/user.router') app.use(express.json()); // app.get('/api', (req, res) => { // res.json({ // success: 1, // message: 'API is working:' // }) // }) app.use("/api/users", userRouter) app.listen(process.env.APP_PORT, () => { console.log('Server Started on PORT :', process.env.APP_PORT) })