From db89ac407884631aa4f4c743433d22b50e0b0ef2 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Sun, 28 Jul 2019 16:25:30 +0200 Subject: [PATCH] Purge via get request --- backend/src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/src/main.rs b/backend/src/main.rs index 25d67bd..98388a2 100644 --- a/backend/src/main.rs +++ b/backend/src/main.rs @@ -122,6 +122,10 @@ fn main() -> Result<()> { "/github/{file:.*}", web::delete().to_async(purge_cache::), ) + .route( + "/purge/github/{file:.*}", + web::get().to_async(purge_cache::), + ) .route( "/bitbucket/{user}/{repo}/{commit}/{file:.*}", web::get().to_async(handle_request::),