add project package routes

project_pack
p31729568 5 years ago
parent 5d03a2d617
commit 17231d64b8

@ -0,0 +1,29 @@
# encoding=utf-8
# For react
class ProjectPackagesController < ApplicationController
before_filter :require_login, :except => [:index]
include ApplicationHelper
def show
render_react
end
def new
render_react
end
def index
render_react
end
def edit
render_react
end
private
def render_react
render file: 'public/react/build/index.html', :layout => false
end
end

@ -57,6 +57,8 @@ RedmineApp::Application.routes.draw do ## oauth相关
get :publish_success, on: :collection
end
resources :project_packages, only: [:index, :show, :new, :edit]
resources :ec_course_evaluations do
member do
match 'import_score', :via => [:post]

Loading…
Cancel
Save