class Admin::AllPageController < ApplicationController before_action :authenticate_admin! layout 'admin' def index @adm = AllPage.all end def show end def new end def create end def edit end def update end def destroy end def publish end def unpublish end end