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