Moved from CJS to ESM + small improvements like logging

This commit is contained in:
Alan Bridgeman 2026-01-07 15:59:40 -06:00
parent 61df35a271
commit c57160e05d
16 changed files with 512 additions and 488 deletions

View file

@ -4,6 +4,5 @@ export abstract class ErrorController {
/** A human readable string to describe the error this controller handles. */
public handlesError?: string;
abstract handle(error: unknown, req: Request, res: Response, next: NextFunction): any | Promise<any>;
}

View file

@ -1,4 +1,4 @@
import { BaseController } from './BaseController';
import { ErrorController } from './ErrorController';
import { BaseController } from './BaseController.js';
import { ErrorController } from './ErrorController.js';
export { BaseController, ErrorController };
export { BaseController, ErrorController };