Skip to content

Custom params for router.resource() in Adonisjs V6 #4819

Answered by RomainLanz
Heng229 asked this question in Help
Discussion options

You must be logged in to vote

Hey @Heng229! 👋🏻

When defining custom names, the key in the object should match the resource you're renaming. In your case, that would be privacy-policy instead of show.

📚 https://docs.adonisjs.com/guides/basics/controllers#renaming-resource-params

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Heng229
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants