diff --git a/lib/real_estate_web/router.ex b/lib/real_estate_web/router.ex index c71757ae..8bf52857 100644 --- a/lib/real_estate_web/router.ex +++ b/lib/real_estate_web/router.ex @@ -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