OSDN Git Service

fix: fetch fail
[pettanr/pettanr.git] / app / controllers / top_controller.rb
1 class TopController < ApplicationController
2   if Manifest.manifest.magic_numbers['run_mode'] == 0
3     before_action :authenticate_user, :only => []
4     before_action :authenticate_author, :only => []
5   else
6     before_action :authenticate_reader, :only => [:index]
7     before_action :authenticate_user, :only => []
8     before_action :authenticate_author, :only => []
9   end
10   
11   def index
12     respond_to do |format|
13       format.html { render layout: 'yasapp' }
14     end
15   end
16   
17   def ap
18     respond_to do |format|
19       format.html { render layout: 'ap' }
20     end
21   end
22   
23 end