allow plural names in routes
This commit is contained in:
parent
12917fd868
commit
6ed3010105
@ -14,8 +14,10 @@ Thingspeak::Application.routes.draw do
|
|||||||
resources :users
|
resources :users
|
||||||
|
|
||||||
# specific feeds
|
# specific feeds
|
||||||
match 'channels/:channel_id/field/:field_id(.:format)' => 'feed#index'
|
match 'channels/:channel_id/feed(s)(.:format)' => 'feed#index'
|
||||||
match 'channels/:channel_id/feed/entry/:id(.:format)' => 'feed#show'
|
match 'channels/:channel_id/field(s)/:field_id(.:format)' => 'feed#index'
|
||||||
|
match 'channels/:channel_id/field(s)/:field_id/:id(.:format)' => 'feed#show'
|
||||||
|
match 'channels/:channel_id/feed(s)/entry/:id(.:format)' => 'feed#show'
|
||||||
|
|
||||||
# import
|
# import
|
||||||
match 'channels/:channel_id/import' => 'channels#import', :as => 'channel_import'
|
match 'channels/:channel_id/import' => 'channels#import', :as => 'channel_import'
|
||||||
|
Loading…
Reference in New Issue
Block a user