diff options
Diffstat (limited to 'chef-server-api/app/controllers/main.rb')
-rw-r--r-- | chef-server-api/app/controllers/main.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/chef-server-api/app/controllers/main.rb b/chef-server-api/app/controllers/main.rb new file mode 100644 index 0000000000..ecd11347dc --- /dev/null +++ b/chef-server-api/app/controllers/main.rb @@ -0,0 +1,18 @@ +class ChefServerApi::Main < ChefServerApi::Application + + before :authenticate_every + provides :html, :json + + def index + display( + { + absolute_slice_url(:nodes) => "Manage Nodes", + absolute_slice_url(:roles) => "Manage Roles", + absolute_slice_url(:cookbooks) => "Manage Cookbooks", + absolute_slice_url(:data) => "Manage Data Bags", + absolute_slice_url(:search) => "Search" + } + ) + end + +end |