Skip to content

Commit

Permalink
await
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgb committed Feb 10, 2025
1 parent 4504591 commit 0a4d15d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ async fn main() {
.route("/status", get(status))
.route("/restart", post(restart))
.route("/interrupt", post(interrupt))
.route("/wait", get(wait_for_reload))
.route("/await", get(wait_for_reload))
.route("/upload/{*filename}", post(upload));

let app = Router::new()
Expand Down
2 changes: 1 addition & 1 deletion src/template/error.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<title>Artifact ServerError</title>
<script>
async function waitForReload() {
const response = await fetch('/_frag/wait');
const response = await fetch('/_frag/await');
if (response.ok) {
location.reload();
}
Expand Down

0 comments on commit 0a4d15d

Please sign in to comment.