From cd40c1dda4a4922e5ab868551b4650675f75ead1 Mon Sep 17 00:00:00 2001 From: Andre Henriques Date: Sun, 9 Jul 2023 19:49:06 +0100 Subject: [PATCH] register configure --- src/configure.rs | 4 ++-- src/main.rs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/configure.rs b/src/configure.rs index a586c68..e19b174 100644 --- a/src/configure.rs +++ b/src/configure.rs @@ -148,8 +148,8 @@ fn is_configured(conn: &Conn) -> Result { return Ok(version_iter.next().unwrap().unwrap().configured); } -#[get("/configure", data= "")] -pub async fn get_configure(data: Json, db: &State, action: &State>) -> String { +#[get("/configure")] +pub async fn get_configure(db: &State, action: &State>) -> String { let conn = get_conn(db); if let Err(e) = conn { diff --git a/src/main.rs b/src/main.rs index 531b534..34fef06 100644 --- a/src/main.rs +++ b/src/main.rs @@ -197,6 +197,7 @@ async fn main() -> GResult { quit, reload, configure::configure, + configure::get_configure, animations::get_active, animations::animation, animations::start_animation,