first
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
pub mod health;
|
||||
pub mod session;
|
||||
|
||||
use axum::{routing::{get, post}, Router};
|
||||
|
||||
pub fn router() -> Router {
|
||||
Router::new()
|
||||
.route("/health", get(health::handler))
|
||||
.route("/api/v1/session/start", post(session::start))
|
||||
.route("/api/v1/session/end", post(session::end))
|
||||
.route("/api/v1/session/me", get(session::me))
|
||||
}
|
||||
Reference in New Issue
Block a user