Replies: 1 comment
-
Your using Also, your |
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
-
I have the following simple code:
In a real world example, my
state
would contain the database pool fromsqlx
and theinfo_middleware
would do things like ensuretoken
is valid, extract IP address, User agent etc. and make it available to all handlers.For routing, basically:
"/"
is to take user tohome_get
"/assets/favicon.ico"
serves the favicon file in the assets folder, andhome_get
.1 and 2 work well. 3 does not.
For example,
"/submit"
fails with below 500 Internal error:I think this is because the Extension middleware isn't accessible to fallbacks?
How to make it work? Or some workaround (other than having to specify every single fallback route manually)?
Beta Was this translation helpful? Give feedback.
All reactions