Revert "Issue #636"
This reverts commit 8c0d419b30
.
inadvertently pushed before code review, CI, etc
Change-Id: I0f043feaf0e616e214af167fdad927bc9c73898c
This commit is contained in:
parent
8c0d419b30
commit
4cf628a2be
|
@ -826,14 +826,9 @@ CanvasRails::Application.routes.draw do
|
|||
get 'equation_images/:id' => 'equation_images#show', as: :equation_images, id: /.+/
|
||||
|
||||
# assignments at the top level (without a context) -- we have some specs that
|
||||
# assert these routes exist, but just 404 unless it is a download from local
|
||||
# storage. I'm not sure we ever actually want top-level assignments available,
|
||||
# maybe we should change the specs instead.
|
||||
# Note, if local storage is used, a file is fetched from this top level
|
||||
# (i.e. SpeedGrader document preview with Google Docs viewer)
|
||||
resources :assignments, only: [:index, :show] do
|
||||
get "files/:id/download" => 'files#show', download: '1'
|
||||
end
|
||||
# assert these routes exist, but just 404. I'm not sure we ever actually want
|
||||
# top-level assignments available, maybe we should change the specs instead.
|
||||
resources :assignments, only: [:index, :show]
|
||||
|
||||
resources :files, :except => [:new] do
|
||||
get 'download' => 'files#show', download: '1'
|
||||
|
|
Loading…
Reference in New Issue