You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this is more a question than an issue. I can't figure out how can I expose a rest api endpoint to my app. How can other apps on computer access an electron-nuxt app? I would like to make it possible that while my app is running, other system apps can access some endpoints.
Thanks for any possible helpers and thanks for a great package!
The text was updated successfully, but these errors were encountered:
I've add serverMiddleware to nuxt.config.
On development it loads the API but it seems that when I build the project the API part is not packaged with it.
If you've figured out how to include it please, spare me some insight.
@aureliusm , @MuGi-131 , any solution?? I'm also using serverMiddleware to send /api endpoints through express handler so I can fetch data from my local DB by axios requests. It works on dev but not build!! the middleware itself is called as I logged but wont send to handler
importexpressfrom'express'constapp=express()app.use(express.json())app.get(`/`,async(req,res)=>{console.log('this is it');res.send('GOOD Job!!')})console.log('middleware');exportdefault{path: '/api',handler: app}
Hi,
this is more a question than an issue. I can't figure out how can I expose a rest api endpoint to my app. How can other apps on computer access an electron-nuxt app? I would like to make it possible that while my app is running, other system apps can access some endpoints.
Thanks for any possible helpers and thanks for a great package!
The text was updated successfully, but these errors were encountered: