Skip to content

Commit

Permalink
#1 add /objects routes to router.ex
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonic committed Oct 4, 2023
1 parent 6707495 commit a608de3
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions lib/tidy_web/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,24 @@ defmodule TidyWeb.Router do
plug :put_secure_browser_headers
end

# pipeline :api do
# plug :accepts, ["json"]
# end

scope "/", TidyWeb do
pipe_through :browser

get "/", PageController, :home

live "/objects", ObjectLive.Index, :index
live "/objects/new", ObjectLive.Index, :new
live "/objects/:id/edit", ObjectLive.Index, :edit

live "/objects/:id", ObjectLive.Show, :show
live "/objects/:id/show/edit", ObjectLive.Show, :edit
end



# pipeline :api do
# plug :accepts, ["json"]
# end
# Other scopes may use custom stacks.
# scope "/api", TidyWeb do
# pipe_through :api
Expand Down

0 comments on commit a608de3

Please sign in to comment.