add VirtualMachine resource to workbench
[arvados.git] / apps / workbench / config / routes.rb
1 ArvadosWorkbench::Application.routes.draw do
2   resources :virtual_machines
3
4
5   resources :authorized_keys
6
7
8   resources :job_tasks
9
10
11   resources :jobs
12
13
14   match '/logout' => 'sessions#destroy'
15   match '/logged_out' => 'sessions#index'
16
17
18   resources :users
19
20
21   resources :logs
22
23
24   resources :factory_jobs
25   match '/factory_jobs/reset_pipeline_instance/:uuid' => 'factory_jobs#reset_pipeline_instance', :as => 'reset_pipeline_instance', :via => 'POST'
26
27
28   resources :uploaded_datasets
29
30
31   resources :groups
32
33
34   resources :specimens
35
36
37   resources :pipeline_templates
38
39
40   resources :pipeline_instances
41
42
43   resources :links
44
45   match '/collections/graph' => 'collections#graph'
46
47   resources :collections
48
49   root :to => 'collections#index'
50
51   # Send unroutable requests to an arbitrary controller
52   # (ends up at ApplicationController#render_not_found)
53   match '*a', :to => 'links#render_not_found'
54
55
56   # The priority is based upon order of creation:
57   # first created -> highest priority.
58
59   # Sample of regular route:
60   #   match 'products/:id' => 'catalog#view'
61   # Keep in mind you can assign values other than :controller and :action
62
63   # Sample of named route:
64   #   match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
65   # This route can be invoked with purchase_url(:id => product.id)
66
67   # Sample resource route (maps HTTP verbs to controller actions automatically):
68   #   resources :products
69
70   # Sample resource route with options:
71   #   resources :products do
72   #     member do
73   #       get 'short'
74   #       post 'toggle'
75   #     end
76   #
77   #     collection do
78   #       get 'sold'
79   #     end
80   #   end
81
82   # Sample resource route with sub-resources:
83   #   resources :products do
84   #     resources :comments, :sales
85   #     resource :seller
86   #   end
87
88   # Sample resource route with more complex sub-resources
89   #   resources :products do
90   #     resources :comments
91   #     resources :sales do
92   #       get 'recent', :on => :collection
93   #     end
94   #   end
95
96   # Sample resource route within a namespace:
97   #   namespace :admin do
98   #     # Directs /admin/products/* to Admin::ProductsController
99   #     # (app/controllers/admin/products_controller.rb)
100   #     resources :products
101   #   end
102
103   # You can have the root of your site routed with "root"
104   # just remember to delete public/index.html.
105   # root :to => 'welcome#index'
106
107   # See how all your routes lay out with "rake routes"
108
109   # This is a legacy wild controller route that's not recommended for RESTful applications.
110   # Note: This route will make all actions in every controller accessible via GET requests.
111   # match ':controller(/:action(/:id))(.:format)'
112 end