You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 19, 2022. It is now read-only.
But obviously you can't have an array with duplicate keys so the second assignment to /posts will overwrite the first and there won't be a route pointing to Posts:index.
Right now a possible work around would be to use addControllerRoute which would go something like
To create a restful API for posts you might think this would do it
But obviously you can't have an array with duplicate keys so the second assignment to
/posts
will overwrite the first and there won't be a route pointing toPosts:index
.Right now a possible work around would be to use
addControllerRoute
which would go something likeBut that doesn't seem as elegant as it could be.
I was wondering if we could think of a better way to define multiple routes that point to the same url with different HTTP methods.
The text was updated successfully, but these errors were encountered: