From 27c44d6d5e11978757771df9a23639271e1059f4 Mon Sep 17 00:00:00 2001 From: kolaente Date: Fri, 18 Dec 2020 23:11:11 +0100 Subject: [PATCH] Change avatar endpoint --- pkg/routes/routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/routes/routes.go b/pkg/routes/routes.go index 9d69931e..3fab5eb4 100644 --- a/pkg/routes/routes.go +++ b/pkg/routes/routes.go @@ -248,7 +248,7 @@ func registerAPIRoutes(a *echo.Group) { n.GET("/info", apiv1.Info) // Avatar endpoint - n.GET("/:username/avatar", apiv1.GetAvatar) + n.GET("/avatar/:username", apiv1.GetAvatar) // Link share auth if config.ServiceEnableLinkSharing.GetBool() {