-
-
Notifications
You must be signed in to change notification settings - Fork 112
Prefixing Routes
Luke Walsh edited this page Dec 18, 2022
·
1 revision
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:
Either in config/shopify-app.php
or ENV, set your prefix.
SHOPIFY_APP_PREFIX=app
(all routes will now exist under /app
)
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).
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