mirror of
https://github.com/shiroyashik/sculptor.git
synced 2025-12-06 13:01:12 +03:00
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:
parent
7594e3d615
commit
a1f9eba502
25 changed files with 410 additions and 367 deletions
16
src/api/v1/mod.rs
Normal file
16
src/api/v1/mod.rs
Normal 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))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue