behind /manager so actully know about it
This commit is contained in:
parent
26a9ab37ba
commit
9d1e56d2dc
1 changed files with 10 additions and 10 deletions
20
src/main.rs
20
src/main.rs
|
|
@ -102,16 +102,16 @@ async fn main() {
|
|||
// build our application with a route
|
||||
let app = Router::new()
|
||||
// `GET /` goes to `root`
|
||||
.route("/", get(root))
|
||||
.route("/status", get(status))
|
||||
.route("/status_container", get(status_container))
|
||||
.route("/stop", get(stop))
|
||||
.route("/start", get(start))
|
||||
.route("/restart", get(restart))
|
||||
.route("/pull", get(git_pull))
|
||||
.route("/auth/callback", get(oauth2_callback))
|
||||
.route("/auth/login", get(oauth2_login))
|
||||
.route("/auth/error", get(auth_error))
|
||||
.route("/manager", get(root))
|
||||
.route("/manager/status", get(status))
|
||||
.route("/manager/status_container", get(status_container))
|
||||
.route("/manager/stop", get(stop))
|
||||
.route("/manager/start", get(start))
|
||||
.route("/manager/restart", get(restart))
|
||||
.route("/manager/pull", get(git_pull))
|
||||
.route("/manager/auth/callback", get(oauth2_callback))
|
||||
.route("/manager/auth/login", get(oauth2_login))
|
||||
.route("/manager/auth/error", get(auth_error))
|
||||
.with_state(state)
|
||||
.layer(tower_http::trace::TraceLayer::new_for_http());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue