Baroshem / nuxt-medusa

🛍️ Medusa module for Nuxt
https://nuxt-medusa.vercel.app
MIT License
128 stars 10 forks source link

Question About Handling Custom Endpoints (Medusa Server) on StoreFront #48

Closed paulootavio closed 1 day ago

paulootavio commented 2 days ago

Hi,

I hope you're doing well.

I have a question regarding handling custom endpoints on my storefront. I’ve developed a custom shipping rate calculator but couldn’t find any information in the documentation about how to integrate or use custom endpoints on my Medusa server.

Could you provide guidance on this?

Thank you in advance for your help!

Best regards,

Baroshem commented 2 days ago

Heyo, nice work!

For that, I think you would need to stick to traditional Nuxt api/server approach that is described here https://nuxt.com/docs/guide/directory-structure/server

paulootavio commented 2 days ago

It worked, I looked at the documentation and managed to make the request for medusa js in a custom way and within the storefront.

thank you very much

Baroshem commented 1 day ago

Glad I could help! If your project with Nuxt and Medusa will be live and public, please let me know so that I could share it as a case study :)

Happy Coding!