modern api endpoint name
This commit is contained in:
@ -18,7 +18,7 @@ const STATUS_FILE: &str = "status.json";
|
||||
async fn main() {
|
||||
let app = Router::new()
|
||||
.route("/status.json", get(root))
|
||||
.route("/api/update.php", post(the_doors));
|
||||
.route("/api/update", post(the_doors));
|
||||
|
||||
let listener = tokio::net::TcpListener::bind("0.0.0.0:3000").await.unwrap();
|
||||
|
||||
|
Reference in New Issue
Block a user