Sha256: b734a93c99bae56278d778033a484042011eab213750bb05f071bdce97fbc159
Contents?: true
Size: 1.05 KB
Versions: 8
Compression:
Stored size: 1.05 KB
Contents
# frozen_string_literal: true ShopifyApp::Engine.routes.draw do login_url = ShopifyApp.configuration.login_url.gsub(/^#{ShopifyApp.configuration.root_url}/, "") login_callback_url = ShopifyApp.configuration.login_callback_url.gsub(/^#{ShopifyApp.configuration.root_url}/, "") controller :sessions do get login_url => :new, :as => :login post login_url => :create, :as => :authenticate get "logout" => :destroy, :as => :logout get "patch_shopify_id_token" => :patch_shopify_id_token # Kept to prevent apps relying on these routes from breaking if login_url.gsub(%r{^/}, "") != "login" get "login" => :new, :as => :default_login post "login" => :create, :as => :default_authenticate end end controller :callback do get login_callback_url => :callback # Kept to prevent apps relying on these routes from breaking if login_callback_url.gsub(%r{^/}, "") != "auth/shopify/callback" get "auth/shopify/callback" => :default_callback end end namespace :webhooks do post "(:type)" => :receive end end
Version data entries
8 entries across 8 versions & 1 rubygems