style: move auth to own folder
This commit is contained in:
parent
a88467fa28
commit
91398ecd5b
3 changed files with 14 additions and 4 deletions
12
src/api/v1/auth/mod.rs
Normal file
12
src/api/v1/auth/mod.rs
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
use actix_web::{Scope, web};
|
||||||
|
|
||||||
|
mod register;
|
||||||
|
mod login;
|
||||||
|
mod refresh;
|
||||||
|
|
||||||
|
pub fn web() -> Scope {
|
||||||
|
web::scope("/auth")
|
||||||
|
.service(register::res)
|
||||||
|
.service(login::res)
|
||||||
|
.service(refresh::res)
|
||||||
|
}
|
|
@ -1,12 +1,10 @@
|
||||||
use actix_web::{Scope, web};
|
use actix_web::{Scope, web};
|
||||||
|
|
||||||
mod stats;
|
mod stats;
|
||||||
mod register;
|
mod auth;
|
||||||
mod login;
|
|
||||||
|
|
||||||
pub fn web() -> Scope {
|
pub fn web() -> Scope {
|
||||||
web::scope("/v1")
|
web::scope("/v1")
|
||||||
.service(stats::res)
|
.service(stats::res)
|
||||||
.service(register::res)
|
.service(auth::web())
|
||||||
.service(login::res)
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue