caoxiemeihao / nuxt-electron

Integrate Nuxt and Electron
MIT License
169 stars 18 forks source link

Server api not working as expected #66

Open angelhdzmultimedia opened 5 months ago

angelhdzmultimedia commented 5 months ago

I have server/api/auth/login.post.ts and throw a 404 error. When I make a post request from pages/auth/login.vue to that endpoint (or any endpoint), it returns a 200 status, so function body execution doesn't go to the catch error.

Then I remove electron entirely, restart the nuxt app, and now handlers and requests work as expected.

Am I missing a configuration to convert server api endpoints to some form accepted by electron? Is this a bug?

Thank you. 💚💙🔥