API: torrents upload/list

This commit is contained in:
xiaomlove
2025-04-17 01:39:40 +07:00
parent 0d3a46231d
commit 2b029eba10
72 changed files with 2332 additions and 507 deletions

View File

@@ -101,6 +101,9 @@ class Handler extends ExceptionHandler
if (config('app.debug')) {
$data['trace'] = $trace;
}
if ($e instanceof \Error || $e instanceof \ErrorException) {
do_log(sprintf(get_class($e) . ": %s, trace: %s", $msg, $e->getTraceAsString()), "error");
}
return new JsonResponse(
fail($msg, $data),
$httpStatusCode,