Skip to content

Commit

Permalink
Add DELETE media route
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live committed Sep 5, 2019
1 parent f53e853 commit 3500090
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/webserver/webserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ func Init() {
if version == "unstable" {
routes["/_matrix/media/"+version+"/local_copy/{server:[a-zA-Z0-9.:\\-_]+}/{mediaId:[a-zA-Z0-9.\\-_]+}"] = route{"GET", localCopyHandler}
routes["/_matrix/media/"+version+"/info/{server:[a-zA-Z0-9.:\\-_]+}/{mediaId:[a-zA-Z0-9.\\-_]+}"] = route{"GET", infoHandler}
routes["/_matrix/media/"+version+"/download/{server:[a-zA-Z0-9.:\\-_]+}/{mediaId:[a-zA-Z0-9.\\-_]+}"] = route{"DELETE", purgeOneHandler}
}
}

Expand Down

0 comments on commit 3500090

Please sign in to comment.