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