HomeDisk/server/src/auth/mod.rs

13 lines
289 B
Rust
Raw Normal View History

pub mod login;
pub mod register;
pub mod whoami;
pub fn app() -> axum::Router {
2022-05-01 20:44:28 +00:00
use axum::routing::{get, post};
axum::Router::new()
.route("/login", post(login::handle))
.route("/register", post(register::handle))
2022-04-24 18:52:17 +00:00
.route("/whoami", get(whoami::handle))
}