Add initial project files

This commit is contained in:
Igor Martyniuk
2026-09-01 13:03:41 +03:00
parent 22e111bb44
commit 74cb5b6176
1841 changed files with 242819 additions and 30 deletions
@@ -0,0 +1,8 @@
import { Exception } from '@adonisjs/core/exceptions'
import type { HttpContext } from '@adonisjs/core/http'
export default class ApiException extends Exception {
async handle(error: this, ctx: HttpContext) {
ctx.response.status(error.status).send({ message: error.message, code: error.code })
}
}