定制竞赛创建接口

This commit is contained in:
xiaoxiaoqiong 2022-04-27 11:36:34 +08:00
parent 703c2c5bad
commit a5021df2ac
1 changed files with 1 additions and 2 deletions

View File

@ -1,6 +1,6 @@
class CompetitionInfosController < ApplicationController
include ApplicationHelper
before_action :find_competition, only: [:show, :update, :enroll, :upload, :enroll_status, :statistics, :enroll_list, :enroll_update, :enroll_status_update, :upload_enroll_template]
before_action :find_competition, only: [:show, :edit, :update, :enroll, :upload, :enroll_status, :statistics, :enroll_list, :enroll_update, :enroll_status_update, :upload_enroll_template]
before_action :require_admin, only: [:index, :new, :edit, :create]
before_action :check_competition_manager, only: [:update, :enroll_status_update]
@ -19,7 +19,6 @@ class CompetitionInfosController < ApplicationController
# GET /competition_infos/1/edit
def edit
@competition_info = CompetitionInfo.find params[:id]
respond_to do |format|
format.html
format.json { render_ok(data: @competition_info.as_json) }