comfycamp/lib/comfycamp_web/controllers/admin_page_html.ex
Ivan Reshetnikov 45c91eb3bf
feat: admin panel
I just added is_admin field to user schema, /admin scope,
admin page controller and view.

No extra functions were implemented.
2024-07-28 21:52:12 +05:00

9 lines
167 B
Elixir

defmodule ComfycampWeb.AdminPageHTML do
use ComfycampWeb, :html
def home(assigns) do
~H"""
Добро пожаловать, админ.
"""
end
end