Replies: 2 comments
-
You can use |
Beta Was this translation helpful? Give feedback.
0 replies
-
@jplatte - that worked thank you. |
Beta Was this translation helpful? Give feedback.
0 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.
-
I would like to structure my app with a "pages" router and an "api" router.
they come from seperate modules - easy enough, all good.
Problem is that I wish to add a "ServeDir" as a fallback handler for "/".
I get the panic error
Invalid route "/*__private__axum_fallback": insertion failed due to conflict with previously registered route...:
if I add it to either the top level Router or the "pages" Router.Top level router:
If I swap the "nest" for a "route" handler it all works.
i.e.
As stated, I have also tried putting the
fallback_service
call at the end of the "pages" router but it still panics with similar error (same error but the reported route == "/").I was wondering what I could be doing wrong?
I am not sure if this is a bug or not.
p.s. the closest I have read is this discussion, and yes, that looks to be the same cause but the solution to move the
fallback_service
call does not solve my situation.Beta Was this translation helpful? Give feedback.
All reactions