бля а вот это почему так

This commit is contained in:
Кобелев Андрей Андреевич 2022-10-13 10:02:39 +03:00
parent f312b82671
commit 6ce578a5eb

View File

@ -25,12 +25,11 @@ pub async fn main() -> std::io::Result<()> {
.app_data(web::Data::new(loyalty::LoyaltyService { .app_data(web::Data::new(loyalty::LoyaltyService {
db: loyalty::db::DbService::new(), db: loyalty::db::DbService::new(),
})) }))
.service(Files::new("/", "./static/").index_file("index.html"))
.service(loyalty::get_cats) .service(loyalty::get_cats)
.service(loyalty::get_colors) .service(loyalty::get_colors)
.service(loyalty::add_cat) .service(loyalty::add_cat)
.service(loyalty::add_color) .service(loyalty::add_color)
.service(Files::new("/", "./static/").index_file("index.html"))
}) })
.bind((app.host, app.port))? .bind((app.host, app.port))?
.run() .run()