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

Commit

Permalink
Merge pull request #7685 from matrix-org/babolivier/3pid_r0
Browse files Browse the repository at this point in the history
Enable 3PID add/bind/unbind endpoints on r0 routes
  • Loading branch information
babolivier authored Jun 15, 2020
2 parents 3b3f327 + 6d5985e commit 356243f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions changelog.d/7685.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix bug introduced on v1.15.0 which meant that some 3PID management endpoints were not accessible on the correct URL.
6 changes: 3 additions & 3 deletions synapse/rest/client/v2_alpha/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ async def on_POST(self, request):


class ThreepidAddRestServlet(RestServlet):
PATTERNS = client_patterns("/account/3pid/add$", releases=(), unstable=True)
PATTERNS = client_patterns("/account/3pid/add$")

def __init__(self, hs):
super(ThreepidAddRestServlet, self).__init__()
Expand Down Expand Up @@ -733,7 +733,7 @@ async def on_POST(self, request):


class ThreepidBindRestServlet(RestServlet):
PATTERNS = client_patterns("/account/3pid/bind$", releases=(), unstable=True)
PATTERNS = client_patterns("/account/3pid/bind$")

def __init__(self, hs):
super(ThreepidBindRestServlet, self).__init__()
Expand Down Expand Up @@ -762,7 +762,7 @@ async def on_POST(self, request):


class ThreepidUnbindRestServlet(RestServlet):
PATTERNS = client_patterns("/account/3pid/unbind$", releases=(), unstable=True)
PATTERNS = client_patterns("/account/3pid/unbind$")

def __init__(self, hs):
super(ThreepidUnbindRestServlet, self).__init__()
Expand Down

0 comments on commit 356243f

Please sign in to comment.