Fix clippy errors, update deps
Some checks failed
Build Crate / build (push) Failing after 52s

This commit is contained in:
2024-08-18 19:56:00 -04:00
parent ffe6a771d2
commit d29da66536
10 changed files with 27 additions and 16 deletions

View File

@@ -1,5 +1,8 @@
// (Server only) Routes
use crate::{endpoints::USER, entity::user};
use crate::{
endpoints::{MATCH, USER},
entity::{game, user},
};
use axum::{
extract::Json,
routing::{post, Router},
@@ -7,10 +10,15 @@ use axum::{
pub fn register_routes(app: Router) -> Router {
let app = app.route(USER, post(post_user));
app
app.route(MATCH, post(post_match))
}
async fn post_user(user: String) -> Json<user::Model> {
async fn post_user(_user: String) -> Json<user::Model> {
// Update the store with the new match
todo!()
}
async fn post_match(_user: String) -> Json<game::Model> {
// Update the store with the new match
todo!()
}