Configure API using proper function
This commit is contained in:
parent
c8de447334
commit
de8c206b9d
|
@ -52,9 +52,9 @@ async fn main() -> std::io::Result<()> {
|
||||||
App::new()
|
App::new()
|
||||||
.app_data(web::Data::new(pool.clone()))
|
.app_data(web::Data::new(pool.clone()))
|
||||||
.service(
|
.service(
|
||||||
web::scope("/api/v1")
|
web::scope("/api")
|
||||||
.wrap(li7y::middleware::ForceIdentity)
|
.wrap(li7y::middleware::ForceIdentity)
|
||||||
.configure(li7y::api::v1::config),
|
.configure(li7y::api::config),
|
||||||
)
|
)
|
||||||
.service(actix_files::Files::new("/static", &static_root))
|
.service(actix_files::Files::new("/static", &static_root))
|
||||||
.configure(li7y::frontend::config)
|
.configure(li7y::frontend::config)
|
||||||
|
|
Loading…
Reference in a new issue