Skip to content

Commit a5003ad

Browse files
committed
update: cleaned index
1 parent ecbc9ca commit a5003ad

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

index.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
1+
//REQUIREMENTS
12
const express = require('express');
23
const mongoose = require('mongoose');
4+
const bodyParser = require('body-parser');
5+
6+
//FOLDERS
37
const locationController = require('./locations/locations.controller')
4-
require('dotenv').config();
58
const userController = require('./users/user.controller');
6-
const app = express()
7-
const port = 3000
8-
const bodyParser = require('body-parser');
9+
10+
//PARAMETERS
11+
require('dotenv').config();
12+
const app = express();
13+
const port = 3000;
914

1015

1116
app.use(bodyParser.json());
12-
app.use('/users', userController);
17+
app.use(locationController);
1318
//app.use(locationController);
1419
app.listen(port, () => {
1520
console.log(`API listening on port ${port}, visit http://localhost:${port}/`)

0 commit comments

Comments
 (0)