Use config to define base path for express routers

This commit is contained in:
Daniel García Aubert
2018-04-10 20:26:36 +02:00
parent ac615b4a25
commit c0943a7c58
5 changed files with 38 additions and 18 deletions
@@ -11,6 +11,20 @@ module.exports = _.extend({}, serverOptions, {
base_url: '/database/:dbname/table/:table',
// 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'
],
grainstore: {
datasource: {
geometry_field: 'the_geom',