Use normal public serve for reports.

This commit is contained in:
Michael Herzberg 2019-02-22 01:14:37 +00:00
parent 2ef011fb71
commit 46f68c5823
2 changed files with 0 additions and 6 deletions

View File

@ -13,8 +13,4 @@ class ReportsController < ApplicationController
kick_out
end
end
def show
send_file File.read(@@report_dir.join(params[:filename]))
end
end

View File

@ -15,9 +15,7 @@ Rails.application.routes.draw do
resources :grades, only: [:new, :create, :index, :edit, :update]
get '/reports/:filename', to: 'reports#show'
post '/reports', to: 'reports#create'
root to: "welcome#index"
end