Skip to content

Commit

Permalink
The ContentController should operate out of the content directory
Browse files Browse the repository at this point in the history
Fixes #176
  • Loading branch information
jcoyne committed Dec 14, 2018
1 parent 204146e commit 468fe28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/content_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ class ContentController < ApplicationController
end

def read
location = druid_tools.path(params[:path])
location = druid_tools.find(:content, params[:path])

send_file location
end

def list
location = druid_tools.path
location = druid_tools.content_dir(false)

raise ActionController::MissingFile, location unless Dir.exist? location

Expand Down

0 comments on commit 468fe28

Please sign in to comment.