Rails.application.routes.draw do devise_for :users, controllers: { omniauth_callbacks: 'infinum_id/users/omniauth_callbacks' } get '/logout', to: 'infinum_id/users#destroy' namespace :api do scope '/webhooks', :controller => :webhooks do post :update_user_callback post :create_user_callback end end end