feat: add base_path to api

Lets you replace /api with whatever you want!
This commit is contained in:
Radical 2025-05-29 20:41:50 +02:00
parent 3c5f3fd654
commit 94c4428bb0
3 changed files with 6 additions and 3 deletions

View file

@ -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()