Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
radicle-httpd: Add DELETE to allowed methods
Sebastian Martinez committed 3 years ago
commit d88858e58beecab83373cb81f76b2b25bfac023f
parent 61902ca47b74672e586ed0d8bb86b9ea47834156
1 file changed +7 -1
modified radicle-httpd/src/api.rs
@@ -73,7 +73,13 @@ pub fn router(ctx: Context) -> Router {
            CorsLayer::new()
                .max_age(Duration::from_secs(86400))
                .allow_origin(cors::Any)
-
                .allow_methods([Method::GET, Method::POST, Method::PATCH, Method::PUT])
+
                .allow_methods([
+
                    Method::GET,
+
                    Method::POST,
+
                    Method::PATCH,
+
                    Method::PUT,
+
                    Method::DELETE,
+
                ])
                .allow_headers([CONTENT_TYPE, AUTHORIZATION]),
        )
}