Replies: 1 comment 4 replies
-
What error are you getting? I tested it out in one of my projects, see image below, and it seems to be working okay. |
Beta Was this translation helpful? Give feedback.
4 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi adonisjs,
I'm trying to achieve route with suffix .html, my code is :
Route.get(
/detail/:id/:slug.html,'Frontend/PostsController.getDetail').as('posts.getDetail')
but i've got an error.
in Laravel i can achive this by using :
Route::get('/detail/{id}/{slug}.html', [Frontend\PostsController::class, 'getDetail'])
How to do this in adonisjs ?
Thank you so much
Beta Was this translation helpful? Give feedback.
All reactions