Parameter for /upload renamed to :name

This commit is contained in:
Christoph Haas 2014-11-30 16:07:10 +01:00
parent c26fa50d6c
commit 43a8ea9dd3

View file

@ -13,7 +13,7 @@ Debshots::Application.routes.draw do
get 'packages' => 'packages#index'
get 'package/:name' => 'packages#details', as: :package
get 'upload/:packagename' => 'packages#upload', as: :upload_package
get 'upload/:name' => 'packages#upload', as: :upload_package
# The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes".