Make it explicit that :id is numeric

This commit is contained in:
D. Berge
2025-08-14 13:29:11 +02:00
parent 09e4cd2467
commit bf1af1f76c

View File

@@ -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 ],