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
|
@ -150,7 +150,7 @@ async fn main() -> Result<(), Error> {
|
|||
App::new()
|
||||
.app_data(web::Data::new(data.clone()))
|
||||
.wrap(cors)
|
||||
.service(api::web())
|
||||
.service(api::web(&data.config.web.base_path))
|
||||
})
|
||||
.bind((web.ip, web.port))?
|
||||
.run()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue