File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 1+ //REQUIREMENTS
12const express = require ( 'express' ) ;
23const mongoose = require ( 'mongoose' ) ;
4+ const bodyParser = require ( 'body-parser' ) ;
5+
6+ //FOLDERS
37const locationController = require ( './locations/locations.controller' )
4- require ( 'dotenv' ) . config ( ) ;
58const 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
1116app . use ( bodyParser . json ( ) ) ;
12- app . use ( '/users' , userController ) ;
17+ app . use ( locationController ) ;
1318//app.use(locationController);
1419app . listen ( port , ( ) => {
1520 console . log ( `API listening on port ${ port } , visit http://localhost:${ port } /` )
You can’t perform that action at this time.
0 commit comments