vike icon indicating copy to clipboard operation
vike copied to clipboard

Add example for API routes

Open sukiejosh opened this issue 3 years ago • 1 comments

I was hoping there could be an option to create or enable/disable api routes or you could create an example on how to do that in the examples folder ....thanks, and great work on this library

sukiejosh avatar Feb 02 '22 07:02 sukiejosh

See https://vite-plugin-ssr.com/api-routes.

I'm leaving this open until I implement examples/telefunc/ and/or examples/api-routes/.

brillout avatar Feb 02 '22 23:02 brillout

I was trying to get vite-plugin-ssr running with Nestjs, however I run into similar problem, I dint found any(at least not an easy) way to implement API routes. It sounds a bit limiting to prevent something like this. Or maybe I missed some configuration?

milenkovic avatar Feb 08 '23 16:02 milenkovic

See recommendation at https://vite-plugin-ssr.com/api-routes.

brillout avatar Feb 08 '23 16:02 brillout

I'm leaving this open until I implement examples/telefunc/

Done.

brillout avatar May 31 '23 21:05 brillout