fix routes

This commit is contained in:
Lee Lawlor 2014-04-03 15:47:33 -04:00
parent 353fab53c0
commit 99fe498041

View File

@ -57,7 +57,8 @@ Thingspeak::Application.routes.draw do
# specific feeds
get 'channels/:channel_id/feed(s)(.:format)' => 'feed#index'
get 'channels/:channel_id/field(s)/:field_id(.:format)' => 'feed#index'
get 'channels/:channel_id/field/:field_id(.:format)' => 'feed#index' # not sure why this doesn't work with (s)
get 'channels/:channel_id/fields/:field_id(.:format)' => 'feed#index' # not sure why this doesn't work with (s)
get 'channels/:channel_id/field/:field_id/:id(.:format)' => 'feed#show' # not sure why this doesn't work with (s)
get 'channels/:channel_id/fields/:field_id/:id(.:format)' => 'feed#show' # not sure why this doesn't work with (s)
get 'channels/:channel_id/feed(s)/last_average(.:format)' => 'feed#last_average'