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);
|
||||
}
|
||||
|
||||
#[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 {
|
||||
|
@ -197,6 +197,7 @@ async fn main() -> GResult {
|
||||
quit,
|
||||
reload,
|
||||
configure::configure,
|
||||
configure::get_configure,
|
||||
animations::get_active,
|
||||
animations::animation,
|
||||
animations::start_animation,
|
||||
|
Loading…
Reference in New Issue
Block a user