Reducing Redundant API Handlers While Preserving TypeScript Types - Nuxt