New Shopify Certification now available: Liquid Storefronts for Theme Developers

How to setup app proxy route in remix app?

Divy_tatva
Shopify Partner
25 1 4

Hello

 

In the old CLI version, We are calling the proxy route from the theme app extension via Ajax call, and in the web/index.js file we have created route logic for that proxy route.

 

Now in the new Remix CLI app, In which file we can create proxy route logic, and how to create it?

 

Thank you

Reply 1 (1)
Liam
Shopify Staff
Shopify Staff
1895 202 577

Hi Divy_tatva,

 

We have documentation here on how to authenticate requests coming from Shopify app proxies, with examples of how to use the session object and communicate with the Admin API. 

 

Hope this helps!

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog