Worked with @jkassman on match adding code
All checks were successful
Build Crate / build (push) Successful in 3m19s

This commit is contained in:
2024-09-03 00:39:43 -04:00
parent f319f41835
commit ed0c107a80
10 changed files with 101 additions and 48 deletions

View File

@@ -1,5 +1,5 @@
// (Server only) Routes
use crate::endpoints::{FORGOT_PASSWORD, LOGIN, LOGIN_TEST, REGISTER};
use crate::endpoints::{ADD_MATCH, FORGOT_PASSWORD, LOGIN, LOGIN_TEST, REGISTER};
use axum::routing::{post, Router};
use super::{
@@ -8,6 +8,7 @@ use super::{
login::{post_login_user, post_test_login},
register::post_register_user,
},
pool::add_match::post_game_result,
server_state::ServerState,
};
@@ -15,6 +16,7 @@ pub fn get_api_router(state: ServerState) -> Router {
Router::new()
.route(REGISTER, post(post_register_user))
.route(LOGIN, post(post_login_user))
.route(ADD_MATCH, post(post_game_result))
.route(LOGIN_TEST, post(post_test_login))
.route(FORGOT_PASSWORD, post(post_forgot_password))
.with_state(state)