Replies: 1 comment
-
|
The optional format mechanism ( |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My APIs are currently called like so:
"/api/v5/some_endpoint" or also "/api/v5/some_endpoint.json". I use
$c->respond_to( { any => { json => $data } }).I'm trying to alter my routes so they work with the changes introduced in 9.11 (https://github.com/mojolicious/mojo/blob/main/Changes):
When I try this,
$r->get('/api/v5/some_endpoint' => [format => ['json']])->to('api#endpoint', format => undef);"/api/v5/some_endpoint" returns a 404. Is there a way to preserve that besides[format => 1]?
Beta Was this translation helpful? Give feedback.
All reactions