@hzgotb/apim-nuxt
v0.0.1
Published
Nuxt module for typed API collections and the apim compile-time macro
Readme
@hzgotb/apim-nuxt
Nuxt 4 module for file-based API modules, typed apim(...) requests, and
ApiModuleMeta-driven request and response inference.
Install
pnpm add @hzgotb/apim-nuxtConfigure
export default defineNuxtConfig({
modules: ['@hzgotb/apim-nuxt'],
apim: {
collections: ['modules/demo-api'],
},
})Create API modules with defineApiModule(...), then place Nitro-compatible
handlers under their configured handler directories.
See the Nuxt package documentation for setup, concepts, and API reference.
