Purge via get request

This commit is contained in:
Valentin Brandl 2019-07-28 16:25:30 +02:00
parent fd5b802d25
commit db89ac4078
No known key found for this signature in database
GPG Key ID: 30D341DD34118D7D

View File

@ -122,6 +122,10 @@ fn main() -> Result<()> {
"/github/{file:.*}",
web::delete().to_async(purge_cache::<Github>),
)
.route(
"/purge/github/{file:.*}",
web::get().to_async(purge_cache::<Github>),
)
.route(
"/bitbucket/{user}/{repo}/{commit}/{file:.*}",
web::get().to_async(handle_request::<Bitbucket>),