diff options
Diffstat (limited to 'app/controllers/api_account.go')
-rw-r--r-- | app/controllers/api_account.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/api_account.go b/app/controllers/api_account.go index 8ef18ce..f22191d 100644 --- a/app/controllers/api_account.go +++ b/app/controllers/api_account.go | |||
@@ -20,7 +20,7 @@ type APIAccountHandler struct { | |||
20 | AdminStore models.AccountStore | 20 | AdminStore models.AccountStore |
21 | } | 21 | } |
22 | 22 | ||
23 | func (h *APIAccountHandler) Register(prefix string, r glecho.URLRouter, mw ...echo.MiddlewareFunc) { | 23 | func (h *APIAccountHandler) Register(prefix, postPrefix string, r glecho.URLRouter, mw ...echo.MiddlewareFunc) { |
24 | // This resource did not exist in the V1 API and thus has no V1 | 24 | // This resource did not exist in the V1 API and thus has no V1 |
25 | // representation. We use the default handlers for V1 because otherwise | 25 | // representation. We use the default handlers for V1 because otherwise |
26 | // requests with V1 Accept headers would result in 406 Unacceptable errors. | 26 | // requests with V1 Accept headers would result in 406 Unacceptable errors. |
@@ -49,7 +49,7 @@ func (h *APIAccountHandler) Register(prefix string, r glecho.URLRouter, mw ...ec | |||
49 | contentTypeV2: h.HandlePost, | 49 | contentTypeV2: h.HandlePost, |
50 | }, | 50 | }, |
51 | } | 51 | } |
52 | r.POST(prefix, poh.Handle, mw...) | 52 | r.POST(postPrefix, poh.Handle, mw...) |
53 | 53 | ||
54 | r.DELETE(prefix, h.HandleDelete, mw...) | 54 | r.DELETE(prefix, h.HandleDelete, mw...) |
55 | } | 55 | } |