rename Metadatum to Link, head to head_uuid, tail to tail_uuid
[arvados.git] / config / routes.rb
index 68f3a2ad12698779ad37099729970a56ed00b7c9..648297685e9d8d51bf5ee86f33b95822843ce258 100644 (file)
@@ -1,9 +1,11 @@
 Server::Application.routes.draw do
+  resources :api_client_authorizations
+  resources :api_clients
   resources :logs
   resources :projects
   resources :specimens
   resources :collections
-  resources :metadata
+  resources :links
   resources :nodes
   resources :pipelines
   resources :pipeline_invocations
@@ -68,7 +70,7 @@ Server::Application.routes.draw do
   namespace :orvos do
     namespace :v1 do
       resources :collections
-      resources :metadata
+      resources :links
       resources :nodes
       resources :pipelines
       resources :pipeline_invocations
@@ -76,13 +78,24 @@ Server::Application.routes.draw do
       resources :specimens
       resources :projects
       resources :logs
+      resources :users
       match '/schema' => 'schema#show'
       match '/nodes/:uuid/ping' => 'nodes#ping', :as => :ping_node
-      match '/metadata/:tail_kind/:tail' => 'metadata#index'
+      match '/links/:tail_uuid' => 'links#index'
     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/metadata#render_not_found'
+  match '*a', :to => 'orvos/v1/links#render_not_found'
+
+  root :to => 'static#home'
 end