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);
}
#[get("/configure", data= "<data>")]
pub async fn get_configure(data: Json<LightConfigurationRequest>, db: &State<DBPool>, action: &State<ASender<Action>>) -> String {
#[get("/configure")]
pub async fn get_configure(db: &State<DBPool>, action: &State<ASender<Action>>) -> String {
let conn = get_conn(db);
if let Err(e) = conn {

View File

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