From fb41f973a4a9e9729e87230b837573411b80ea9c Mon Sep 17 00:00:00 2001 From: Maix0 Date: Thu, 27 Jun 2024 14:19:03 +0200 Subject: [PATCH] Update to add git pull path --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index adae66b..6069cd0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -266,6 +266,7 @@ async fn main() { .route("/start", get(start)) .route("/restart", get(restart)) .route("/config", get(get_config)) + .route("/pull", get(git_pull)) .route("/auth/callback", get(oauth2_callback)) .route("/auth/login", get(oauth2_login)) .with_state(state); @@ -443,6 +444,7 @@ async fn root(_user: UserLoggedIn) -> Html<&'static str> { start
status
config
+ git pull (ask before!)
"#, ) }