mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 11:17:08 +00:00
Refactor layer API endpoint and database functions.
- A single get() function is used both to list all available layers, if no layer name is given, or a single layer. - The database no longer holds the actual layer contents, only the path to the layer file(s), so the list() function is now redundant as we return the full payload in every case. - The /gis/layer and /gis/layer/:name endpoints now have the same payload structure.
This commit is contained in:
@@ -124,7 +124,7 @@ app.map({
|
||||
get: [ mw.gis.project.final ]
|
||||
},
|
||||
'/project/:project/gis/layer': {
|
||||
get: [ mw.etag.noSave, mw.gis.project.layer.list ]
|
||||
get: [ mw.etag.noSave, mw.gis.project.layer.get ]
|
||||
},
|
||||
'/project/:project/gis/layer/:name': {
|
||||
get: [ mw.etag.noSave, mw.gis.project.layer.get ]
|
||||
|
||||
Reference in New Issue
Block a user