Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Prefixing Routes

Tyler King edited this page Jul 18, 2019 · 4 revisions

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).

Welcome to the wiki!

Please see the homepage for a list of relevant pages.

Clone this wiki locally