diff --git a/api/index.js b/api/index.js index f1bb476..02e18b0 100644 --- a/api/index.js +++ b/api/index.js @@ -18,16 +18,4 @@ app.use(bodyParser.json()) const router = require('./routes/router') app.use('/api', router) -// app.listen(PORT, () => console.log(`Server running on port ${PORT}`)) - -const http = require('http'); -// const express = require('express'); - -// const route = require('./routes'); -// const app = express(); -// app.use(bodyParser.urlencoded({extended: false})); -// app.use(route); app.use('/', (req, res,next)=>{ -// res.send('

first midleware: Hello Tutorials Point

'); -// }); -const server = http.createServer(app); -server.listen(PORT); \ No newline at end of file +app.listen(PORT, () => console.log(`Server running on port ${PORT}`))