From de8c206b9dd4a3f73a9598fd04ba6495177cbb2c Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sun, 14 Jul 2024 14:05:04 +0200 Subject: [PATCH] Configure API using proper function --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 9dafa5e..526dd65 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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)