Hey every one,
Have simple code in term of define idea:
live_session :default,
root_layout: {MyApp.LayoutView, "live_public.html"}
scope "/", MyApp do
pipe_through(:browser)
live("/", HomeLive)
end
scope "/", MyApp do
pipe_through(:browser)
get("/about", AboutController, :index)
end
end
I want to have something like this with http and also with LiveView.
/about -> "AboutController, :index"
/en/about -> "AboutController, :index"
/fr/à-propos -> "AboutController, :index"
/ -> HomeLive
/en -> HomeLive
/fr -> HomeLive
Dose any one know any lib for it?