diff --git a/app/controllers/shixuns_controller.rb b/app/controllers/shixuns_controller.rb index 78e6cc0f0..23e64b740 100644 --- a/app/controllers/shixuns_controller.rb +++ b/app/controllers/shixuns_controller.rb @@ -3,7 +3,7 @@ class ShixunsController < ApplicationController include ApplicationHelper before_action :require_login, :check_auth, except: [:download_file, :index, :menus, :show, :show_right, :ranking_list, - :discusses, :collaborators, :fork_list, :propaedeutics] + :discusses, :collaborators, :fork_list, :propaedeutics, :add_file] before_action :check_account, only: [:new, :create, :shixun_exec] diff --git a/config/routes.rb b/config/routes.rb index a0aaa65cc..73c00b1ec 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -198,6 +198,7 @@ Rails.application.routes.draw do post :file_content post :update_file post :close + post :add_file get :fork_list post :update_propaedeutics get :add_collaborators