Skip to content

Commit 3500090

Browse files
committed
Add DELETE media route
Per [MSC2278](matrix-org/matrix-spec-proposals#2278) Fixes #200
1 parent f53e853 commit 3500090

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

api/webserver/webserver.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ func Init() {
8989
if version == "unstable" {
9090
routes["/_matrix/media/"+version+"/local_copy/{server:[a-zA-Z0-9.:\\-_]+}/{mediaId:[a-zA-Z0-9.\\-_]+}"] = route{"GET", localCopyHandler}
9191
routes["/_matrix/media/"+version+"/info/{server:[a-zA-Z0-9.:\\-_]+}/{mediaId:[a-zA-Z0-9.\\-_]+}"] = route{"GET", infoHandler}
92+
routes["/_matrix/media/"+version+"/download/{server:[a-zA-Z0-9.:\\-_]+}/{mediaId:[a-zA-Z0-9.\\-_]+}"] = route{"DELETE", purgeOneHandler}
9293
}
9394
}
9495

0 commit comments

Comments
 (0)