Re-usable server/api code

Hi, Is there any best practice or guide to creating reusable api code in nuxt3? I've got some code that needs to stay private (hence using the server), but I'd like to make some of it reusable in my api endpoints/functions.
2 Replies
Julien
Julien2y ago
Hi 👋 why not moving all theses utils into ~/server/utils ?
woutercouvaras
woutercouvarasOP2y ago
Hi! Thanks, that's exactly what I've done😊 I just thought I'd ask to see if there was some specific best practice. Thanks for taking the time to answer! 👏

Did you find this page helpful?