Skip to content

Commit

Permalink
fix 403 Forbidden on to /peers/add request(#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
вашÐiwojim0 committed Jan 29, 2024
1 parent 8a0ae0d commit 96413dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/dtn7/src/dtnd/httpd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -697,8 +697,6 @@ async fn download_hex(

pub async fn spawn_httpd() -> Result<()> {
let mut app_local_only = Router::new()
.route("/peers/add", get(http_peers_add))
.route("/peers/del", get(http_peers_delete))
.route("/send", post(send_post))
.route("/delete", get(delete).delete(delete))
.route("/register", get(register))
Expand Down Expand Up @@ -736,6 +734,8 @@ pub async fn spawn_httpd() -> Result<()> {
let app = app_local_only
.route("/", get(index))
.route("/peers", get(web_peers))
.route("/peers/add", get(http_peers_add))
.route("/peers/del", get(http_peers_delete))
.route("/bundles", get(web_bundles))
.route("/download.hex", get(download_hex))
.route("/download", get(download))
Expand Down

0 comments on commit 96413dd

Please sign in to comment.