Use new routes configuration

This commit is contained in:
Daniel García Aubert
2019-10-04 12:07:58 +02:00
parent 975f07df99
commit dd06de2632
8 changed files with 55 additions and 47 deletions
+6 -6
View File
@@ -20,7 +20,7 @@ var config = {
// Note: each entry corresponds with an express' router.
// You must define at least one path. However, middlewares are optional.
,routes: {
api: {
api: [{
paths: [
'/api/v1',
'/user/:user/api/v1',
@@ -36,21 +36,21 @@ var config = {
],
// Base url for the Detached Maps API
// "/api/v1/map" is the new API,
map: {
map: [{
paths: [
'/map',
],
middlewares: [] // Optional
},
}],
// Base url for the Templated Maps API
// "/api/v1/map/named" is the new API,
template: {
template: [{
paths: [
'/map/named'
],
middlewares: [] // Optional
}
}
}]
}]
}
// Resource URLs expose endpoints to request/retrieve metadata associated to Maps: dataviews, analysis node status.