Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Melih Korkmaz
committed
Jun 6, 2018
1 parent
3bd8ae5
commit 45b9d7a
Showing
8 changed files
with
33 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
module.exports = { | ||
maxDataItem : 100, | ||
connectionString : "" | ||
connectionString : "", | ||
port : 8080, | ||
apiVersion : "v1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
import config from '../config'; | ||
import cityRoutes from './city.routes'; | ||
import townRoutes from './town.routes'; | ||
import districtRoutes from './district.routes'; | ||
import neightborhoodsRoutes from './neighborhoods.routes'; | ||
|
||
|
||
module.exports = (app) => { | ||
app.use('/cities', cityRoutes); | ||
app.use('/towns', townRoutes); | ||
app.use('/districts', districtRoutes); | ||
app.use('/neighborhoods', neightborhoodsRoutes); | ||
app.use(`/${config.apiVersion}/cities`, cityRoutes); | ||
app.use(`/${config.apiVersion}/towns`, townRoutes); | ||
app.use(`/${config.apiVersion}/districts`, districtRoutes); | ||
app.use(`/${config.apiVersion}/neighborhoods`, neightborhoodsRoutes); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters