summaryrefslogtreecommitdiff
path: root/internal/api/auth/token.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/auth/token.go')
-rw-r--r--internal/api/auth/token.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/api/auth/token.go b/internal/api/auth/token.go
index 03cfa6341..133fbacde 100644
--- a/internal/api/auth/token.go
+++ b/internal/api/auth/token.go
@@ -42,7 +42,7 @@ type tokenRequestForm struct {
// The idea here is to serve an oauth access token to a user, which can be used for authorizing against non-public APIs.
func (m *Module) TokenPOSTHandler(c *gin.Context) {
if _, err := apiutil.NegotiateAccept(c, apiutil.JSONAcceptHeaders...); err != nil {
- apiutil.ErrorHandler(c, gtserror.NewErrorNotAcceptable(err, err.Error()), m.processor.InstanceGet)
+ apiutil.ErrorHandler(c, gtserror.NewErrorNotAcceptable(err, err.Error()), m.processor.InstanceGetV1)
return
}