mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 01:04:49 -04:00
Fix /events/:event_id
deprecated API. (#6731)
This commit is contained in:
parent
0f6e525be3
commit
74b74462f1
4 changed files with 30 additions and 2 deletions
|
@ -70,7 +70,6 @@ class EventStreamRestServlet(RestServlet):
|
|||
return 200, {}
|
||||
|
||||
|
||||
# TODO: Unit test gets, with and without auth, with different kinds of events.
|
||||
class EventRestServlet(RestServlet):
|
||||
PATTERNS = client_patterns("/events/(?P<event_id>[^/]*)$", v1=True)
|
||||
|
||||
|
@ -78,6 +77,7 @@ class EventRestServlet(RestServlet):
|
|||
super(EventRestServlet, self).__init__()
|
||||
self.clock = hs.get_clock()
|
||||
self.event_handler = hs.get_event_handler()
|
||||
self.auth = hs.get_auth()
|
||||
self._event_serializer = hs.get_event_client_serializer()
|
||||
|
||||
async def on_GET(self, request, event_id):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue