Talento90 / typescript-node

:clipboard: TypeScript and NodeJS project template.
MIT License
369 stars 78 forks source link

add prefix #10

Closed rbonillajr closed 7 years ago

rbonillajr commented 7 years ago

how to add router prefix

I added it in configuration/config.de.json and it does not work

example: { "database": { "connectionString": "mongodb://localhost/taskdb-dev" }, "server": { "routes": { "prefix": "/api" }, "port": 5000, "jwtSecret": "random-secret-password", "jwtExpiration": "1h", "plugins": [ "logger", "swagger", "jwt-auth" ] } }