Replies: 1 comment 6 replies
-
How can you delete something without an id? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I prefer using
Route.resource('endpoint').only(['index', 'update'])
over defining specific post, delete, etc. endpoints.Sometimes I just need a DELETE or PUT request without an
:id
parameter.Is there some kind of configuration of the Route.resource() mechanism to make that parameter optional?
From an API point of view, would it be propriate to modify AdonisJS to allow that?
Beta Was this translation helpful? Give feedback.
All reactions