diff --git a/app/controllers/admin/dashboard_controller.rb b/app/controllers/admin/dashboard_controller.rb new file mode 100644 index 00000000..7772c060 --- /dev/null +++ b/app/controllers/admin/dashboard_controller.rb @@ -0,0 +1,5 @@ +class Admin::DashboardController < ApplicationController + before_action :authenticate_user! + + def index; end +end diff --git a/app/views/admin/dashboard/index.html.haml b/app/views/admin/dashboard/index.html.haml new file mode 100644 index 00000000..b2518836 --- /dev/null +++ b/app/views/admin/dashboard/index.html.haml @@ -0,0 +1,5 @@ +.card + .card-body + No dashboard content yet! + +- parent_layout "admin" diff --git a/config/routes.rb b/config/routes.rb index eae3f063..2097567e 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -12,6 +12,7 @@ Rails.application.routes.draw do mount Sidekiq::Web, at: "/sidekiq" mount PgHero::Engine, at: "/pghero", as: "pghero" + get "/admin", to: "admin/dashboard#index", as: :admin_dashboard get "/admin/announcements", to: "announcement#index", as: :announcement_index post "/admin/announcements", to: "announcement#create", as: :announcement_create get "/admin/announcements/new", to: "announcement#new", as: :announcement_new