Configure API using proper function
This commit is contained in:
parent
092a01cdb2
commit
bd9a531dad
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue