Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
radicle-httpd: Add DELETE to allowed methods
Sebastian Martinez committed 3 years ago
commit 0087a4b50c904018ece9fbc1bf1178ba9dea5cc9
parent ac812d78342fc8c3a45ffe69aaaae5b8c0720de7
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]),
        )
}