Add POST, PUT, DELETE support to /project/:project/info.

It reuses the same backend functions as for the global `/info/` path.
This commit is contained in:
D. Berge
2021-05-31 02:23:08 +02:00
parent 594233c965
commit bba050032f

View File

@@ -158,7 +158,9 @@ app.map({
},
'/project/:project/info/:path(*)': {
get: [ mw.info.get ],
// post: [ mw.info.post ],
post: [ mw.auth.access.write, mw.info.post ],
put: [ mw.auth.access.write, mw.info.put ],
delete: [ mw.auth.access.write, mw.info.delete ]
},
'/project/:project/meta/': {
put: [ mw.auth.access.write, mw.meta.put ],