@@ -29,19 +29,13 @@ defmodule AlgoraWeb.Router do
29
29
scope "/" , AlgoraWeb do
30
30
pipe_through [ :browser ]
31
31
32
- if Application . compile_env ( :algora , :swift_mode ) do
33
- live_session :root ,
34
- on_mount: [ { AlgoraWeb.UserAuth , :current_user } ] do
35
- live "/" , SwiftBountiesLive
36
- end
37
- else
38
- get "/" , RootController , :index
32
+ # if Application.compile_env(:algora, :swift_mode) do
33
+ # live_session :root,
34
+ # on_mount: [{AlgoraWeb.UserAuth, :current_user}] do
35
+ # live "/", SwiftBountiesLive
36
+ # end
39
37
40
- live_session :root ,
41
- on_mount: [ { AlgoraWeb.UserAuth , :current_user } ] do
42
- live "/:country_code" , HomeLive , :index
43
- end
44
- end
38
+ get "/" , RootController , :index
45
39
46
40
get "/set_context/:context" , ContextController , :set
47
41
get "/a/:table_prefix/:activity_id" , ActivityController , :get
@@ -72,7 +66,7 @@ defmodule AlgoraWeb.Router do
72
66
live_session :community ,
73
67
layout: { AlgoraWeb.Layouts , :user } ,
74
68
on_mount: [ { AlgoraWeb.UserAuth , :ensure_authenticated } , AlgoraWeb.User.Nav ] do
75
- live "/home" , Community .DashboardLive, :index
69
+ live "/home" , User .DashboardLive, :index
76
70
end
77
71
78
72
live_session :authenticated ,
@@ -143,6 +137,11 @@ defmodule AlgoraWeb.Router do
143
137
live "/trotw" , TROTWLive
144
138
145
139
live "/open-source" , OpenSourceLive , :index
140
+
141
+ live_session :root ,
142
+ on_mount: [ { AlgoraWeb.UserAuth , :current_user } ] do
143
+ live "/:country_code" , HomeLive , :index
144
+ end
146
145
end
147
146
148
147
# Other scopes may use custom stacks.
0 commit comments