From 5b69d5bfbeb76e2236b18a219c006e8fcbd5d417 Mon Sep 17 00:00:00 2001 From: Patryk Hegenberg Date: Thu, 2 May 2024 11:10:27 +0200 Subject: [PATCH] feature(shuttle): adapt shuttle implementation to new server structure --- src/shuttle.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shuttle.rs b/src/shuttle.rs index c5458b5..817b15d 100644 --- a/src/shuttle.rs +++ b/src/shuttle.rs @@ -4,7 +4,7 @@ use crate::relay::server::download_success; use crate::relay::server::upload_info; use crate::relay::server::ws_handler; use axum::{ - routing::{get, post}, + routing::{get, post, put}, Router, }; use axum_client_ip::SecureClientIpSource; @@ -23,7 +23,7 @@ async fn axum() -> ShuttleAxum { // Set up the application routes. let app = Router::new() .route("/ws", get(ws_handler)) - .route("/upload", post(upload_info)) + .route("/upload", put(upload_info)) .route("/download/:name", get(download_info)) .route("/download_success/:name", post(download_success)) .with_state(appstate)