App Proxy - possibility to call other routes?

Hello,

I’ve developed a solution in my Shopify Remix app to call a proxy from a Theme Extension and get some data from the backend, which works fine.

I couldn’t find information if I could potentially use the same proxy to call for some other request?

E.g.

Current proxy config:
Subpath prefix: apps

Subpath: discounts

Proxy URL: my-app-url.com/app/discounts

In Theme Extension, using fetch to /apps/discounts (Subpath prefix + subpath), gets me the data I need from file in my app/routes directory, named app.discounts.jsx
Let’s say I would like to retrieve some other information and had a route file, named app.somethingelse.jsx — is there a possibility to create another fetch request in a different theme extension, using the same proxy URL?

Hi @Thegraske ,

As far as I know about Shopify App Proxy, you can create requests from storefront to any app proxies, as long as that proxies don’t have special validate or you know how to passthrough middleware :grin: . Theme App Extensions are renderred on storefront so my answer is YES. You can open browser devtool and try yourself.

If it helps you, please like and mark it as the solution.

Best Regards.