Move the two /configuration endpoints next to each other

This commit is contained in:
D. Berge
2025-08-11 22:20:46 +02:00
parent c173610e87
commit 8c81daefc0

View File

@@ -121,10 +121,12 @@ app.map({
get: [ mw.auth.access.read, mw.project.summary.get ],
},
'/project/:project/configuration': {
get: [ mw.project.configuration.get ], // Get project configuration
patch: [ mw.auth.access.edit, mw.project.configuration.patch ], // Modify project configuration
put: [ mw.auth.access.edit, mw.project.configuration.put ], // Overwrite configuration
},
'/project/:project/configuration/:path(*)?': {
get: [ mw.auth.access.read, mw.configuration.get ],
},
/*
* GIS endpoints
@@ -272,10 +274,6 @@ app.map({
'/project/:project/label/': {
get: [ mw.auth.access.read, mw.label.list ],
// post: [ mw.label.post ],
},
'/project/:project/configuration/:path(*)?': {
get: [ mw.auth.access.read, mw.configuration.get ],
// post: [ mw.auth.access.admin, mw.label.post ],
},
'/project/:project/info/:path(*)': {
get: [ mw.auth.operations, mw.auth.access.read, mw.info.get ],