mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 09:47:08 +00:00
Make it explicit that :id is numeric
This commit is contained in:
@@ -229,7 +229,7 @@ app.map({
|
|||||||
'-/:sequence/': { // NOTE: We need to avoid conflict with the next endpoint ☹
|
'-/:sequence/': { // NOTE: We need to avoid conflict with the next endpoint ☹
|
||||||
get: [ mw.auth.access.read, mw.event.sequence.get ],
|
get: [ mw.auth.access.read, mw.event.sequence.get ],
|
||||||
},
|
},
|
||||||
':id/': {
|
':id(\\d+)/': {
|
||||||
get: [ mw.auth.access.read, mw.event.get ],
|
get: [ mw.auth.access.read, mw.event.get ],
|
||||||
put: [ mw.auth.access.write, mw.event.put ],
|
put: [ mw.auth.access.write, mw.event.put ],
|
||||||
patch: [ mw.auth.access.write, mw.event.patch ],
|
patch: [ mw.auth.access.write, mw.event.patch ],
|
||||||
|
|||||||
Reference in New Issue
Block a user