Purge via get request
This commit is contained in:
parent
fd5b802d25
commit
db89ac4078
@ -122,6 +122,10 @@ fn main() -> Result<()> {
|
|||||||
"/github/{file:.*}",
|
"/github/{file:.*}",
|
||||||
web::delete().to_async(purge_cache::<Github>),
|
web::delete().to_async(purge_cache::<Github>),
|
||||||
)
|
)
|
||||||
|
.route(
|
||||||
|
"/purge/github/{file:.*}",
|
||||||
|
web::get().to_async(purge_cache::<Github>),
|
||||||
|
)
|
||||||
.route(
|
.route(
|
||||||
"/bitbucket/{user}/{repo}/{commit}/{file:.*}",
|
"/bitbucket/{user}/{repo}/{commit}/{file:.*}",
|
||||||
web::get().to_async(handle_request::<Bitbucket>),
|
web::get().to_async(handle_request::<Bitbucket>),
|
||||||
|
Loading…
Reference in New Issue
Block a user