add liveview hopefully
This commit is contained in:
@@ -39,6 +39,8 @@ defmodule PokemonCoutureWeb do
|
||||
|
||||
# Include shared imports and aliases for views
|
||||
unquote(view_helpers())
|
||||
|
||||
import Phoenix.LiveView.Helpers
|
||||
end
|
||||
end
|
||||
|
||||
@@ -48,6 +50,7 @@ defmodule PokemonCoutureWeb do
|
||||
|
||||
import Plug.Conn
|
||||
import Phoenix.Controller
|
||||
import Phoenix.LiveView.Router
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -6,10 +6,12 @@ defmodule PokemonCoutureWeb.Router do
|
||||
pipeline :browser do
|
||||
plug :accepts, ["html"]
|
||||
plug :fetch_session
|
||||
plug :fetch_flash
|
||||
plug :fetch_live_flash
|
||||
plug :protect_from_forgery
|
||||
plug :put_secure_browser_headers
|
||||
plug :fetch_current_user
|
||||
|
||||
plug :put_root_layout, {PokemonCoutureWeb.LayoutView, :root}
|
||||
end
|
||||
|
||||
pipeline :api do
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<title>PokemonCouture · Phoenix Framework</title>
|
||||
<link rel="stylesheet" href="<%= Routes.static_path(@conn, "/css/app.css") %>"/>
|
||||
<%= csrf_meta_tag() %>
|
||||
<script defer type="text/javascript" src="<%= Routes.static_path(@conn, "/js/app.js") %>"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Reference in New Issue
Block a user