Hi all, I have written this article
https://faizk6797.medium.com/learn-how-to-build-a-desktop-application-with-electron-and-nextjs-while-also-adding-api-route-ebaf37b0511b
that solves the problem of next js api route and using /api routes in our desktop application