Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
fixup! media/create: add /create endpoint
Browse files Browse the repository at this point in the history
Co-authored-by: Patrick Cloke <[email protected]>
  • Loading branch information
sumnerevans and clokep authored Nov 13, 2023
1 parent b298258 commit 1cff556
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions synapse/rest/media/create_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,7 @@ def __init__(self, hs: "HomeServer", media_repo: "MediaRepository"):
cfg=hs.config.ratelimiting.rc_media_create,
)

async def _async_render_OPTIONS(self, request: SynapseRequest) -> None:
respond_with_json(request, 200, {}, send_cors=True)

async def _async_render_POST(self, request: SynapseRequest) -> None:
async def on_POST(self, request: SynapseRequest) -> None:
requester = await self.auth.get_user_by_req(request)

# If the create media requests for the user are over the limit, drop them.
Expand Down

0 comments on commit 1cff556

Please sign in to comment.