removing user/admin dashboards from boilerplate
This commit is contained in:
parent
3a9f00b14e
commit
9d59effeca
5 changed files with 6 additions and 208 deletions
lib/shift73k_web
|
@ -1,18 +0,0 @@
|
|||
defmodule Shift73kWeb.AdminDashboardLive do
|
||||
use Shift73kWeb, :live_view
|
||||
|
||||
@impl true
|
||||
def mount(_params, session, socket) do
|
||||
socket = assign_defaults(socket, session)
|
||||
{:ok, socket}
|
||||
end
|
||||
|
||||
@impl true
|
||||
def render(assigns) do
|
||||
~L"""
|
||||
<section class="phx-hero">
|
||||
<h1>Welcome to the admin dashboard!</h1>
|
||||
</section>
|
||||
"""
|
||||
end
|
||||
end
|
|
@ -1,18 +0,0 @@
|
|||
defmodule Shift73kWeb.UserDashboardLive do
|
||||
use Shift73kWeb, :live_view
|
||||
|
||||
@impl true
|
||||
def mount(_params, session, socket) do
|
||||
socket = assign_defaults(socket, session)
|
||||
{:ok, socket}
|
||||
end
|
||||
|
||||
@impl true
|
||||
def render(assigns) do
|
||||
~L"""
|
||||
<section class="phx-hero">
|
||||
<h2>Welcome to the user dashboard!</h2>
|
||||
</section>
|
||||
"""
|
||||
end
|
||||
end
|
|
@ -88,17 +88,13 @@ defmodule Shift73kWeb.Router do
|
|||
get("/users/confirm/:token", UserConfirmationController, :confirm)
|
||||
end
|
||||
|
||||
scope "/", Shift73kWeb do
|
||||
pipe_through([:browser, :require_authenticated_user, :user])
|
||||
# scope "/", Shift73kWeb do
|
||||
# pipe_through([:browser, :require_authenticated_user, :user])
|
||||
# end
|
||||
|
||||
live("/user_dashboard", UserDashboardLive, :index)
|
||||
end
|
||||
|
||||
scope "/", Shift73kWeb do
|
||||
pipe_through([:browser, :require_authenticated_user, :admin])
|
||||
|
||||
live("/admin_dashboard", AdminDashboardLive, :index)
|
||||
end
|
||||
# scope "/", Shift73kWeb do
|
||||
# pipe_through([:browser, :require_authenticated_user, :admin])
|
||||
# end
|
||||
|
||||
# Users Management
|
||||
scope "/users", Shift73kWeb do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue