refactor: move api to /api
serve api under /api
This commit is contained in:
parent
f12f81d584
commit
ebb4286c08
2 changed files with 12 additions and 4 deletions
|
@ -1,2 +1,11 @@
|
|||
pub mod v1;
|
||||
pub mod versions;
|
||||
use actix_web::Scope;
|
||||
use actix_web::web;
|
||||
|
||||
mod v1;
|
||||
mod versions;
|
||||
|
||||
pub fn web() -> Scope {
|
||||
web::scope("/api")
|
||||
.service(v1::web())
|
||||
.service(versions::res)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue