Nuxt/test/fixtures/basic/server/api/error.ts

4 lines
86 B
TypeScript
Raw Permalink Normal View History

export default defineEventHandler(() => {
throw createError({ statusCode: 400 })
})