Files
elo/src/server/routes.rs
Matthew Kaminski 0f20ba3b86
Some checks failed
Build Crate / build (push) Failing after 54s
Added basic logging in
Needs a lot of work
2024-08-26 00:09:08 -04:00

12 lines
337 B
Rust

// (Server only) Routes
use crate::endpoints::{LOGIN, LOGIN_TEST};
use axum::routing::{post, Router};
use super::auth::login::{post_login_user, post_test_login};
pub fn register_routes(app: Router) -> Router {
let app = app.route(LOGIN, post(post_login_user));
let app = app.route(LOGIN_TEST, post(post_test_login));
app
}