From fb2afad07fb818a9d8bbe2cd1bba94445e4fbd9c Mon Sep 17 00:00:00 2001 From: Melroy van den Berg Date: Tue, 1 Oct 2024 14:51:28 +0200 Subject: [PATCH] Add integer requirement to message route --- config/kbin_routes/message.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/kbin_routes/message.yaml b/config/kbin_routes/message.yaml index 447b4adf5..cc6bb1e36 100644 --- a/config/kbin_routes/message.yaml +++ b/config/kbin_routes/message.yaml @@ -7,6 +7,8 @@ messages_single: controller: App\Controller\Message\MessageThreadController path: /profile/messages/{id} methods: [ GET, POST ] + requirements: + id: \d+ messages_create: controller: App\Controller\Message\MessageCreateThreadController