We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0433fa commit 5eedac1Copy full SHA for 5eedac1
lib/reddit_web/router.ex
@@ -32,7 +32,7 @@ defmodule RedditWeb.Router do
32
33
get "/", PageController, :index
34
get "/u/:username", UserController, :profile
35
- resources "/communities", CommunityController, except: [:show]
+ resources "/communities", CommunityController, only: [:index]
36
get "/r/:name", CommunityController, :show
37
end
38
@@ -50,6 +50,7 @@ defmodule RedditWeb.Router do
50
51
scope "/", RedditWeb do
52
pipe_through [:browser, :protected]
53
+ resources "/communities", CommunityController, except: [:index, :show]
54
# Add your protected routes here
55
56
0 commit comments