2025-03-22 22:17:47 -04:00
|
|
|
pub mod auth;
|
|
|
|
pub mod misc;
|
2025-03-25 23:58:27 -04:00
|
|
|
pub mod profile;
|
2025-03-22 22:17:47 -04:00
|
|
|
|
|
|
|
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))
|
2025-03-25 23:58:27 -04:00
|
|
|
// profile
|
|
|
|
.route("/user/{username}", get(profile::posts_request))
|
2025-03-22 22:17:47 -04:00
|
|
|
}
|