Skip to content

Commit eda7068

Browse files
sdelanodanielsdeleo
authored andcommitted
add named route for cookbook versions
1 parent 79cf53a commit eda7068

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎chef-server-api/config/router.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
:method => 'get',
6565
:cookbook_name => /[\w\.]+/,
6666
:cookbook_version => /(\d+\.\d+\.\d+|_latest)/
67-
).to(:controller => "cookbooks", :action => "show")
67+
).to(:controller => "cookbooks", :action => "show").name(:cookbook_version)
6868

6969
match("/cookbooks/:cookbook_name/:cookbook_version",
7070
:method => 'delete',

0 commit comments

Comments
 (0)