This commit is contained in:
parent
9d1f6d0030
commit
cd40c1dda4
@ -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 {
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user