class ExhibitsController < ApplicationController
    before_action :require_login

    def index
        @exhibits = Exhibit.all
    end

    def show
        @exhibit = Exhibit.find(params[:id])
        @user = current_user
    end

    private

    def user_params(*args)
        params.require(:user).permit(*args)
    end
end