14 lines
308 B
Rust
14 lines
308 B
Rust
![]() |
pub mod auth;
|
||
|
pub mod misc;
|
||
|
|
||
|
use axum::{Router, routing::get};
|
||
|
|
||
|
pub fn routes() -> Router {
|
||
|
Router::new()
|
||
|
// misc
|
||
|
.route("/", get(misc::index_request))
|
||
|
// auth
|
||
|
.route("/auth/register", get(auth::register_request))
|
||
|
.route("/auth/login", get(auth::login_request))
|
||
|
}
|