Prefixing Routes - gnikyt/laravel-shopify GitHub Wiki
By default, all routes are under the root /
. If you would like your routes to exist under something like /backend
or /app
, please follow these steps:
Set the prefix
Either in config/shopify-app.php
or ENV, set your prefix.
SHOPIFY_APP_PREFIX=app
(all routes will now exist under /app
)
Update the API redirect
Either in config/shopify-app.php
or ENV, update the API redirect to match.
SHOPIFY_API_REDIRECT=app/authenticate
(be sure to update your app settings in Shopify to reflect this URL as well).
Update the Billing redirect
If you are using billing you will need to update the billing redirect. Either in config/shopify-app.php
or ENV.
SHOPIFY_BILLING_REDIRECT=app/billing/process