Skip to content

Commit

Permalink
Add requirements for integer to ajax routes
Browse files Browse the repository at this point in the history
  • Loading branch information
melroy89 committed Oct 1, 2024
1 parent 3687a2c commit ddb0280
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions config/kbin_routes/ajax.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,30 +21,40 @@ ajax_fetch_post_comments:
defaults: { _format: json }
path: /ajax/fetch_post_comments/{id}
methods: [GET]
requirements:
id: \d+

ajax_fetch_entry:
controller: App\Controller\AjaxController::fetchEntry
defaults: { _format: json }
path: /ajax/fetch_entry/{id}
methods: [GET]
requirements:
id: \d+

ajax_fetch_entry_comment:
controller: App\Controller\AjaxController::fetchEntryComment
defaults: { _format: json }
path: /ajax/fetch_entry_comment/{id}
methods: [GET]
requirements:
id: \d+

ajax_fetch_post:
controller: App\Controller\AjaxController::fetchPost
defaults: { _format: json }
path: /ajax/fetch_post/{id}
methods: [GET]
requirements:
id: \d+

ajax_fetch_post_comment:
controller: App\Controller\AjaxController::fetchPostComment
defaults: { _format: json }
path: /ajax/fetch_post_comment/{id}
methods: [GET]
requirements:
id: \d+

ajax_fetch_online:
controller: App\Controller\AjaxController::fetchOnline
Expand Down

0 comments on commit ddb0280

Please sign in to comment.