15 lines
370 B
Rust
15 lines
370 B
Rust
use crate::files;
|
|
use crate::AppState;
|
|
use axum::routing::post;
|
|
use axum::{response::Html, routing::get, Router};
|
|
|
|
pub fn routes() -> Router<AppState> {
|
|
Router::new()
|
|
.route("/", get(handler))
|
|
.route("/api/v1/user/{:user_id}/files", post(files::handle_file_uploads))
|
|
}
|
|
|
|
async fn handler() -> Html<&'static str> {
|
|
Html("<h1>Hello, World!</h1>")
|
|
}
|