diff options
author | Nuo Yan <nuo@opscode.com> | 2011-02-10 13:55:04 -0800 |
---|---|---|
committer | Nuo Yan <nuo@opscode.com> | 2011-02-10 13:55:04 -0800 |
commit | f4cfaa3630fa486e9844bef963246ce40ba7a0d8 (patch) | |
tree | 9b6e2387138d13248e35efbee9b7ce8d40c276d5 /chef-server-api/config/router.rb | |
parent | 706a9e963603ada7660e0e66ae3c75fec10041e4 (diff) | |
download | chef-f4cfaa3630fa486e9844bef963246ce40ba7a0d8.tar.gz |
Removing /cookbooks/_latest cookbook endpoint and fix the sort order of versions returned by CookbookVersions.cdb_list
Diffstat (limited to 'chef-server-api/config/router.rb')
-rw-r--r-- | chef-server-api/config/router.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/chef-server-api/config/router.rb b/chef-server-api/config/router.rb index e23b3b58e9..b8b4801e3a 100644 --- a/chef-server-api/config/router.rb +++ b/chef-server-api/config/router.rb @@ -62,8 +62,6 @@ Merb::Router.prepare do :method => 'get' ).to(:controller => "cookbooks", :action => "index").name(:cookbooks) - match("/cookbooks/_latest", :method=>'get').to(:controller=>'cookbooks',:action=>'index_latest') - match("/cookbooks/_recipes", :method=>'get').to(:controller=>'cookbooks',:action=>'index_recipes') match("/cookbooks/:cookbook_name/:cookbook_version", @@ -132,7 +130,7 @@ Merb::Router.prepare do @json_params ||= begin if Merb::Const::JSON_MIME_TYPE_REGEXP.match(content_type) begin - # Call Chef's JSON utility instead of the default in Merb, + # Call Chef's JSON utility instead of the default in Merb, # JSON.parse. jobj = Chef::JSON.from_json(raw_post) jobj = jobj.to_mash if jobj.is_a?(Hash) |