Skip to content

Commit

Permalink
now one can see one post too
Browse files Browse the repository at this point in the history
  • Loading branch information
Juha Halmu committed Aug 31, 2024
1 parent efd0c9e commit f22b276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kotisivut_web/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ defmodule KotisivutWeb.Router do
get "/", PageController, :home

live "/posts", PostLive.Index, :index
live "/posts/:id", PostLive.Show, :show
end

# Other scopes may use custom stacks.
Expand Down Expand Up @@ -72,7 +73,6 @@ defmodule KotisivutWeb.Router do
live "/users/settings/confirm_email/:token", UserSettingsLive, :confirm_email
live "/posts/new", PostLive.Index, :new
live "/posts/:id/edit", PostLive.Index, :edit
live "/posts/:id", PostLive.Show, :show
live "/posts/:id/show/edit", PostLive.Show, :edit
end
end
Expand Down

0 comments on commit f22b276

Please sign in to comment.