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
Hi ๐ why not moving all theses utils into
~/server/utils
?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! ๐