Configure API using proper function

This commit is contained in:
Simon Bruder 2024-07-14 14:05:04 +02:00
parent 092a01cdb2
commit bd9a531dad
Signed by: simon
GPG key ID: 347FF8699CDA0776

View file

@ -52,9 +52,9 @@ async fn main() -> std::io::Result<()> {
App::new()
.app_data(web::Data::new(pool.clone()))
.service(
web::scope("/api/v1")
web::scope("/api")
.wrap(li7y::middleware::ForceIdentity)
.configure(li7y::api::v1::config),
.configure(li7y::api::config),
)
.service(actix_files::Files::new("/static", &static_root))
.configure(li7y::frontend::config)