X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/8a4a943f7344fa5d1df5d5345d33e3dea3653dbf..77991e6100bda063c4f3c87bc6b12594055ca01b:/config/routes.rb diff --git a/config/routes.rb b/config/routes.rb index b292fd38bd..76abf3e5b7 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,7 +1,16 @@ Server::Application.routes.draw do - resources :metadata - + resources :job_steps + resources :jobs + resources :api_client_authorizations + resources :api_clients + resources :logs + resources :groups + resources :specimens resources :collections + resources :links + resources :nodes + resources :pipeline_templates + resources :pipeline_instances # The priority is based upon order of creation: # first created -> highest priority. @@ -62,8 +71,36 @@ Server::Application.routes.draw do namespace :orvos do namespace :v1 do + match '/schema' => 'schema#show' + match '/rest' => 'schema#discovery_rest_description' + match '/nodes/:uuid/ping' => 'nodes#ping', :as => :ping_node + match '/links/from/:tail_uuid' => 'links#index', :as => :orvos_v1_links_from + match '/users/current' => 'users#current' resources :collections + resources :links + resources :nodes + resources :pipeline_templates + resources :pipeline_instances + resources :specimens + resources :groups + resources :logs + resources :users + resources :jobs + resources :job_steps end end + # omniauth + match '/auth/:provider/callback', :to => 'user_sessions#create' + match '/auth/failure', :to => 'user_sessions#failure' + + # Custom logout + match '/login', :to => 'user_sessions#login' + match '/logout', :to => 'user_sessions#logout' + + # Send unroutable requests to an arbitrary controller + # (ends up at ApplicationController#render_not_found) + match '*a', :to => 'orvos/v1/links#render_not_found' + + root :to => 'static#home' end