Skip to content

Commit

Permalink
remove route adds from generator
Browse files Browse the repository at this point in the history
  • Loading branch information
mejackreed committed Feb 19, 2015
1 parent 116416f commit 13a7470
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/generators/geoblacklight/install_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,6 @@ def add_unique_key
end
end

def inject_routes
route 'post "wms/handle"'
route 'resources :download, only: [:show, :file]'
route "get 'download/file/:id' => 'download#file', as: :download_file"
route "get 'download/hgl/:id' => 'download#hgl', as: :download_hgl"
end

def create_downloads_directory
FileUtils.mkdir_p("tmp/cache/downloads") unless File.directory?("tmp/cache/downloads")
end
Expand Down
4 changes: 4 additions & 0 deletions lib/geoblacklight/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ module Routes

def web_services_routes(primary_resource)
add_routes do |options|
post 'wms/handle'
resources :download, only: [:show, :file]
get 'download/file/:id' => 'download#file', as: :download_file
get 'download/hgl/:id' => 'download#hgl', as: :download_hgl
get "#{primary_resource}/:id/web_services" => "#{primary_resource}#web_services", as: "web_services_#{primary_resource}"
end
end
Expand Down

0 comments on commit 13a7470

Please sign in to comment.