feat: add base_path to api
Lets you replace /api with whatever you want!
This commit is contained in:
parent
3c5f3fd654
commit
94c4428bb0
3 changed files with 6 additions and 3 deletions
|
@ -6,6 +6,6 @@ use actix_web::web;
|
|||
mod v1;
|
||||
mod versions;
|
||||
|
||||
pub fn web() -> Scope {
|
||||
web::scope("/api").service(v1::web()).service(versions::get)
|
||||
pub fn web(path: &str) -> Scope {
|
||||
web::scope(path.trim_end_matches('/')).service(v1::web()).service(versions::get)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue