init moderation controller
This commit is contained in:
parent
b927b3bc87
commit
2107ec6270
|
@ -0,0 +1,4 @@
|
|||
class ModerationController < ApplicationController
|
||||
def index
|
||||
end
|
||||
end
|
|
@ -0,0 +1,2 @@
|
|||
module ModerationHelper
|
||||
end
|
|
@ -0,0 +1,2 @@
|
|||
<h1>Moderation#index</h1>
|
||||
<p>Find me in app/views/moderation/index.html.erb</p>
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue