Skip to content

Commit

Permalink
add: ark-third api
Browse files Browse the repository at this point in the history
  • Loading branch information
Romira915 committed Apr 4, 2023
1 parent f342d88 commit 5ab2830
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions homeserver_receive_process/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ async fn post_ark_second(command: web::Json<Command>) -> impl Responder {
exec_systemctl(command, "ark-server-second.service").await
}

#[post("/ark-third")]
async fn post_ark_third(command: web::Json<Command>) -> impl Responder {
log::info!("post ark-third");
exec_systemctl(command, "ark-server-third.service").await
}

#[get("/test")]
async fn index() -> impl Responder {
HttpResponse::Ok().body("test")
Expand Down Expand Up @@ -117,6 +123,7 @@ async fn main() -> std::io::Result<()> {
.service(post_terraria)
.service(post_ark)
.service(post_ark_second)
.service(post_ark_third)
.service(Files::new("/.well-known", well_known_path.as_path()))
})
.client_request_timeout(Duration::from_millis(30000))
Expand Down

0 comments on commit 5ab2830

Please sign in to comment.