Commit a31711a0242c927b314da1726e821b53572fad44

Thomas de Grivel 2022-01-25T09:56:17

route avatars through public pipeline

diff --git a/lib/kmxgit_web/router.ex b/lib/kmxgit_web/router.ex
index a04fa74..7a3c3e9 100644
--- a/lib/kmxgit_web/router.ex
+++ b/lib/kmxgit_web/router.ex
@@ -45,6 +45,8 @@ defmodule KmxgitWeb.Router do
     post   "/_confirm",        UserConfirmationController, :create
     get    "/_confirm/:token", UserConfirmationController, :edit
     post   "/_confirm/:token", UserConfirmationController, :update
+
+    get "/_avatar/:login/:size/avatar.png", UserController, :avatar
   end
 
     ## Authentication routes
@@ -67,8 +69,6 @@ defmodule KmxgitWeb.Router do
   scope "/", KmxgitWeb do
     pipe_through [:browser, :require_authenticated_user]
 
-    get "/_avatar/:login/:size/avatar.png", UserController, :avatar
-
     get "/_settings", UserSettingsController, :edit
     put "/_settings", UserSettingsController, :update
     get "/_settings/confirm_email/:token", UserSettingsController, :confirm_email