move v1 controllers to v1 dir

This commit is contained in:
Alex Holliday committed 2025-09-22 13:04:45 -07:00
1 parent f767125acd
commit 23126a92cd
16 files changed
+24 -24

No files matched your search

@@ -0,0 +1,26 @@
import BaseController from "./baseController.js";
const SERVICE_NAME = "LogController";
class LogController extends BaseController {
static SERVICE_NAME = SERVICE_NAME;
constructor(commonDependencies) {
super(commonDependencies);
}
get serviceName() {
return LogController.SERVICE_NAME;
}
getLogs = this.asyncHandler(
async (req, res) => {
const logs = await this.logger.getLogs();
res.success({
msg: "Logs fetched successfully",
data: logs,
});
},
SERVICE_NAME,
"getLogs"
);
}
export default LogController;