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

4 lines
86 B
TypeScript
Raw Normal View History

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