From 143a76ac42617cf2c12a45d55618dbeb813a4a91 Mon Sep 17 00:00:00 2001 From: David Huang Date: Sat, 24 Sep 2022 17:53:54 -0400 Subject: [PATCH] idk --- api/index.js | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) 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}`))