diff --git a/app/controllers/moderation_controller.rb b/app/controllers/moderation_controller.rb new file mode 100644 index 00000000..ad56f876 --- /dev/null +++ b/app/controllers/moderation_controller.rb @@ -0,0 +1,4 @@ +class ModerationController < ApplicationController + def index + end +end diff --git a/app/helpers/moderation_helper.rb b/app/helpers/moderation_helper.rb new file mode 100644 index 00000000..9bdae5c9 --- /dev/null +++ b/app/helpers/moderation_helper.rb @@ -0,0 +1,2 @@ +module ModerationHelper +end diff --git a/app/views/moderation/index.html.erb b/app/views/moderation/index.html.erb new file mode 100644 index 00000000..39e8127f --- /dev/null +++ b/app/views/moderation/index.html.erb @@ -0,0 +1,2 @@ +

Moderation#index

+

Find me in app/views/moderation/index.html.erb

diff --git a/config/routes.rb b/config/routes.rb index cc6ccb8a..0c4ce02f 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,6 +1,8 @@ require 'sidekiq/web' Rails.application.routes.draw do + get 'moderation/index' + mount RailsAdmin::Engine => '/justask_admin', as: 'rails_admin' constraints ->(req) { req.env["warden"].authenticate?(scope: :user) && req.env['warden'].user.admin? } do