Sha256: db8987fd73546c76e11505d2f732a7fd35870671099ae3ee20546833d5b53405

Contents?: true

Size: 926 Bytes

Versions: 7

Compression:

Stored size: 926 Bytes

Contents

Rails.application.routes.draw do
  namespace :trello do
    resources :cards, only: %i(index) do
      collection do
        get 'search'
        get 'search_frame'
        get 'search_frame_success'
        delete 'delete_association'
      end
    end
    post 'cards/search_frame', to: 'cards#create_association'
    get 'cards', to: 'cards#index'

    post '/webhooks', to: 'webhooks#receive'
    get '/webhooks', to: 'webhooks#complete'
  end

  resources :mappings

  get '/oauth/hubspot', to: 'oauth/authorization#authorize_hubspot'
  get '/oauth/hubspot_callback', to: 'oauth/authorization#hubspot_callback'
  get '/auth/:provider/callback', to: 'oauth/authorization#trello_callback'
  get '/oauth/trello_callback', to: 'oauth/authorization#trello_callback'
  get '/login', to: 'oauth/authorization#login'

  post '/create_card', to: 'home#create_card'
  get '/success', to: 'home#success'
  root to: 'home#index'
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hubspot-api-client-9.0.0 sample-apps/trello-integration-app/config/routes.rb
hubspot-api-client-8.0.1 sample-apps/trello-integration-app/config/routes.rb
hubspot-api-client-8.0.0 sample-apps/trello-integration-app/config/routes.rb
hubspot-api-client-7.3.0 sample-apps/trello-integration-app/config/routes.rb
hubspot-api-client-7.2.0 sample-apps/trello-integration-app/config/routes.rb
hubspot-api-client-7.1.1 sample-apps/trello-integration-app/config/routes.rb
hubspot-api-client-7.1.0 sample-apps/trello-integration-app/config/routes.rb