Use a better API to define public routes
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user