Add property related routes

This commit is contained in:
Joao Gilberto Balsini Moura 2020-09-14 13:22:33 -03:00
parent 4526435972
commit 465045bbb5

View file

@ -86,6 +86,12 @@ defmodule RealEstateWeb.Router do
pipe_through [:browser, :require_authenticated_user, :user]
live "/user_dashboard", UserDashboardLive, :index
live "/properties", PropertyLive.Index, :index
live "/properties/new", PropertyLive.Index, :new
live "/properties/:id/edit", PropertyLive.Index, :edit
live "/properties/:id", PropertyLive.Show, :show
live "/properties/:id/show/edit", PropertyLive.Show, :edit
end
scope "/", RealEstateWeb do