Use a better API to define public routes

This commit is contained in:
Daniel García Aubert
2018-04-11 12:33:07 +02:00
parent c0943a7c58
commit e06d3200c3
5 changed files with 39 additions and 27 deletions
@@ -12,18 +12,24 @@ module.exports = _.extend({}, serverOptions, {
// FIXME: Remove it. This is no longer needed, paths are defined in routers
base_url_mapconfig: '/database/:dbname/layergroup',
api_base_paths: [
'/tiles',
'/database/:dbname'
],
map_base_paths: [
'/layergroup'
],
template_base_paths: [
'/template'
],
routes: {
api: {
paths: [
'/tiles',
'/database/:dbname'
],
map: {
paths: [
'/layergroup'
]
},
template: {
paths: [
'/template'
]
}
}
},
grainstore: {
datasource: {