Expose new API endpoint: /info/:path(*).

Provides CRUD access to values (which may be deeply nested) from the
global `info` table.
This commit is contained in:
D. Berge
2021-05-20 18:19:29 +02:00
parent 4ee65ef284
commit 8d3e665206

View File

@@ -186,6 +186,14 @@ app.map({
get: [ mw.gis.navdata.get ]
}
},
'/info/': {
':path(*)': {
get: [ mw.info.get ],
put: [ mw.auth.access.write, mw.info.put ],
post: [ mw.auth.access.write, mw.info.post ],
delete: [ mw.auth.access.write, mw.info.delete ]
}
},
'/rss/': {
get: [ mw.rss.get ]
}