idk
This commit is contained in:
parent
be2e44a8e3
commit
143a76ac42
14
api/index.js
14
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('<h1> first midleware: Hello Tutorials Point </h1>');
|
||||
// });
|
||||
const server = http.createServer(app);
|
||||
server.listen(PORT);
|
||||
app.listen(PORT, () => console.log(`Server running on port ${PORT}`))
|
||||
|
|
Loading…
Reference in New Issue
Block a user