Type error occurred when registering route #1576
-
As usual, I tried to register the route by putting the extension in the handler function.
That code throws the following error: This is a problem that has not occurred in other codes configured in the same form, so it is difficult to understand. This is the code point where no error occurred. (https://github.com/tetrust/tetrust-server/blob/develop/src/routes/user/handler.rs#L23) The code point where the error occurred. Can you tell me what am I doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Make |
Beta Was this translation helpful? Give feedback.
Make
Json
the last extractor. See https://docs.rs/axum/latest/axum/extract/index.html#the-order-of-extractors