From 20aecafd793052eebdc9eb075849a09c78e84e9b Mon Sep 17 00:00:00 2001 From: Gonzalo Riestra Date: Tue, 25 Jun 2019 15:16:01 +0200 Subject: [PATCH] routes --- config/routes.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config/routes.rb b/config/routes.rb index 32e0215f3d..5e6c1bb662 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -573,6 +573,13 @@ CartoDB::Application.routes.draw do delete 'kuviz/:id', to: 'custom_visualizations#delete', constraints: { id: UUID_REGEXP }, as: :api_v4_kuviz_delete_viz put 'kuviz/:id', to: 'custom_visualizations#update', constraints: { id: UUID_REGEXP }, as: :api_v4_kuviz_update_viz get 'kuviz', to: 'custom_visualizations#index', as: :api_v4_kuviz_list_vizs + + # OAuth apps + get 'oauth_apps', to: 'oauth_apps#index', as: :api_v4_oauth_apps_index + get 'oauth_apps/:id', to: 'oauth_apps#show', constraints: { id: UUID_REGEXP }, as: :api_v4_oauth_apps_show + post 'oauth_apps', to: 'oauth_apps#create', as: :api_v4_oauth_apps_create + put 'oauth_apps/:id', to: 'oauth_apps#update', constraints: { id: UUID_REGEXP }, as: :api_v4_oauth_apps_update + delete 'oauth_apps/:id', to: 'oauth_apps#destroy', constraints: { id: UUID_REGEXP }, as: :api_v4_oauth_apps_destroy end scope 'v3/' do