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
|
Loading…
Reference in new issue