-
SummaryI want to have a The problem I'm running into is that using
The above produces the following error message:
There shouldn't be a conflict though because clearly axum version0.7.2 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes, quite easy: use axum::routing::{get, get_service};
let app = Router::new()
.route("/", get(get_index))
.route(
"/submit",
get_service(ServeFile::new("public/submit.html")).post(submit),
); |
Beta Was this translation helpful? Give feedback.
Yes, quite easy: