How to overwrite internal statamic routes? #4601
Answered
by
jasonvarga
torian257x
asked this question in
Q&A
-
I want to overwrite statamic "internal" routes. At the moment auth routes for activation emails etc. is there another way to do it? |
Beta Was this translation helpful? Give feedback.
Answered by
jasonvarga
Oct 29, 2021
Replies: 1 comment 1 reply
-
In a service provider you can use the \Statamic\Statamic::pushWebRoutes(function () {
Route::get(...);
}); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
torian257x
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In a service provider you can use the
Statamic::pushWebRoutes
closure. This will add web routes that get loaded before we create our catch-all route.