N
Nuxtโ€ข2y ago
woutercouvaras

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
Julienโ€ข2y ago
Hi ๐Ÿ‘‹ why not moving all theses utils into ~/server/utils ?
woutercouvaras
woutercouvarasOPโ€ข2y 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! ๐Ÿ‘
Want results from more Discord servers?
Add your server