move v1 to v1 dir, add build workflow

This commit is contained in:
Alex Holliday committed 2025-09-23 11:59:02 -07:00
1 parent 0030394008
commit f945a27011
46 files changed
+136 -64

No files matched your search

-22
View File
@@ -1,22 +0,0 @@
import { logger } from "../utils/logger.js";
import ServiceRegistry from "../service/system/serviceRegistry.js";
import StringService from "../service/system/stringService.js";
const handleErrors = (error, req, res, next) => {
const status = error.status || 500;
const stringService = ServiceRegistry.get(StringService.SERVICE_NAME);
const message = error.message || stringService.authIncorrectPassword;
const service = error.service || stringService.unknownService;
logger.error({
message: message,
service: service,
method: error.method,
stack: error.stack,
});
res.error({
status,
msg: message,
});
};
export { handleErrors };