Skip to content

Commit

Permalink
Create [...].ts
Browse files Browse the repository at this point in the history
  • Loading branch information
imcm7 authored Oct 9, 2023
1 parent 1c8aa38 commit 3fe1048
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions server/api/[...].ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { createError, defineEventHandler } from 'h3'
import { User } from './server/entities/user.entity';

export default defineEventHandler(() => {
console.log(Object.getOwnPropertyNames(User.prototype));
return createError({
statusCode: 404,
statusMessage: 'Not found.'
})
})

0 comments on commit 3fe1048

Please sign in to comment.