register configure
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Andre Henriques 2023-07-09 19:49:06 +01:00
parent 9d1f6d0030
commit cd40c1dda4
2 changed files with 3 additions and 2 deletions

View File

@ -148,8 +148,8 @@ fn is_configured(conn: &Conn) -> Result<bool, String> {
return Ok(version_iter.next().unwrap().unwrap().configured); return Ok(version_iter.next().unwrap().unwrap().configured);
} }
#[get("/configure", data= "<data>")] #[get("/configure")]
pub async fn get_configure(data: Json<LightConfigurationRequest>, db: &State<DBPool>, action: &State<ASender<Action>>) -> String { pub async fn get_configure(db: &State<DBPool>, action: &State<ASender<Action>>) -> String {
let conn = get_conn(db); let conn = get_conn(db);
if let Err(e) = conn { if let Err(e) = conn {

View File

@ -197,6 +197,7 @@ async fn main() -> GResult {
quit, quit,
reload, reload,
configure::configure, configure::configure,
configure::get_configure,
animations::get_active, animations::get_active,
animations::animation, animations::animation,
animations::start_animation, animations::start_animation,