Files
elo/src/server/routes.rs
Matthew Kaminski 528682d9b1
Some checks failed
Build Crate / build (push) Has been cancelled
Update to more generic db models
Also integrated entities into codebase
2024-08-18 03:26:12 -04:00

17 lines
352 B
Rust

// (Server only) Routes
use crate::{endpoints::USER, entity::user};
use axum::{
extract::Json,
routing::{post, Router},
};
pub fn register_routes(app: Router) -> Router {
let app = app.route(USER, post(post_user));
app
}
async fn post_user(user: String) -> Json<user::Model> {
// Update the store with the new match
todo!()
}