This commit is contained in:
@@ -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!()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user