From 6ce578a5ebbfd44f6b9ef96857346089d14b24bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D0=BE=D0=B1=D0=B5=D0=BB=D0=B5=D0=B2=20=D0=90=D0=BD?= =?UTF-8?q?=D0=B4=D1=80=D0=B5=D0=B9=20=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B5?= =?UTF-8?q?=D0=B2=D0=B8=D1=87?= Date: Thu, 13 Oct 2022 10:02:39 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B1=D0=BB=D1=8F=20=D0=B0=20=D0=B2=D0=BE?= =?UTF-8?q?=D1=82=20=D1=8D=D1=82=D0=BE=20=D0=BF=D0=BE=D1=87=D0=B5=D0=BC?= =?UTF-8?q?=D1=83=20=D1=82=D0=B0=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index ca275d6..e767b88 100644 --- a/src/main.rs +++ b/src/main.rs @@ -25,12 +25,11 @@ pub async fn main() -> std::io::Result<()> { .app_data(web::Data::new(loyalty::LoyaltyService { db: loyalty::db::DbService::new(), })) - .service(Files::new("/", "./static/").index_file("index.html")) - .service(loyalty::get_cats) .service(loyalty::get_colors) .service(loyalty::add_cat) .service(loyalty::add_color) + .service(Files::new("/", "./static/").index_file("index.html")) }) .bind((app.host, app.port))? .run()