Skip to content
Snippets Groups Projects
Commit efeabd31 authored by Erik Johnston's avatar Erik Johnston
Browse files

Log user that is making /publicRooms calls

parent 1fd6eb69
No related branches found
No related tags found
No related merge requests found
......@@ -279,6 +279,13 @@ class PublicRoomListRestServlet(ClientV1RestServlet):
@defer.inlineCallbacks
def on_GET(self, request):
try:
yield self.auth.get_user_by_req(request)
except AuthError:
# This endpoint isn't authed, but its useful to know who's hitting
# it if they *do* supply an access token
pass
handler = self.hs.get_room_list_handler()
data = yield handler.get_aggregated_public_room_list()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment