diff options
Diffstat (limited to 'app/controllers/api_user.go')
-rw-r--r-- | app/controllers/api_user.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/api_user.go b/app/controllers/api_user.go index df667db..f265f26 100644 --- a/app/controllers/api_user.go +++ b/app/controllers/api_user.go | |||
@@ -15,7 +15,7 @@ type APIUserHandler struct { | |||
15 | Store models.UserStore | 15 | Store models.UserStore |
16 | } | 16 | } |
17 | 17 | ||
18 | func (h *APIUserHandler) Register(prefix string, r glecho.URLRouter, mw ...echo.MiddlewareFunc) { | 18 | func (h *APIUserHandler) Register(prefix, postPrefix string, r glecho.URLRouter, mw ...echo.MiddlewareFunc) { |
19 | // This resource did not exist in the V1 API and thus has no V1 | 19 | // This resource did not exist in the V1 API and thus has no V1 |
20 | // representation. We use the default handlers for V1 because otherwise | 20 | // representation. We use the default handlers for V1 because otherwise |
21 | // requests with V1 Accept headers would result in 406 Unacceptable errors. | 21 | // requests with V1 Accept headers would result in 406 Unacceptable errors. |
@@ -44,7 +44,7 @@ func (h *APIUserHandler) Register(prefix string, r glecho.URLRouter, mw ...echo. | |||
44 | contentTypeV2: h.HandlePost, | 44 | contentTypeV2: h.HandlePost, |
45 | }, | 45 | }, |
46 | } | 46 | } |
47 | r.POST(prefix, poh.Handle, mw...) | 47 | r.POST(postPrefix, poh.Handle, mw...) |
48 | 48 | ||
49 | r.DELETE(prefix, h.HandleDelete, mw...) | 49 | r.DELETE(prefix, h.HandleDelete, mw...) |
50 | } | 50 | } |