The system design has changed, but the refactor is not over.

In future commits, I will strive to maintain a consistent style.
This commit is contained in:
Shiroyasha 2024-07-01 03:43:06 +03:00
parent 7594e3d615
commit a1f9eba502
Signed by: shiroyashik
GPG key ID: E4953D3940D7860A
25 changed files with 410 additions and 367 deletions

16
src/api/v1/mod.rs Normal file
View file

@ -0,0 +1,16 @@
use axum::{routing::{get, post}, Router};
use crate::AppState;
mod http2ws;
mod users;
mod auth;
mod types;
pub fn router() -> Router<AppState> {
Router::new()
.route("/verify", get(http2ws::verify))
.route("/raw", post(http2ws::raw))
.route("/sub/raw", post(http2ws::sub_raw))
.route("/auth/", get(auth::status))
.route("/users/create", post(users::create_user))
}