This commit is contained in:
David Huang 2022-09-24 17:53:54 -04:00
parent be2e44a8e3
commit 143a76ac42

View File

@ -18,16 +18,4 @@ app.use(bodyParser.json())
const router = require('./routes/router') const router = require('./routes/router')
app.use('/api', router) app.use('/api', router)
// app.listen(PORT, () => console.log(`Server running on port ${PORT}`)) 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('<h1> first midleware: Hello Tutorials Point </h1>');
// });
const server = http.createServer(app);
server.listen(PORT);