Add distributedUptimeController
This commit is contained in:
1 parent
71fd2fb5ef
commit
3b5a1827ad
1 file changed
+18
@@ -0,0 +1,18 @@
|
||||
import { handleError } from "./controllerUtils.js";
|
||||
import { successMessages } from "../utils/messages.js";
|
||||
|
||||
const SERVICE_NAME = "DistributedUptimeQueueController";
|
||||
|
||||
class DistributedUptimeController {
|
||||
constructor() {}
|
||||
|
||||
async resultsCallback(req, res, next) {
|
||||
try {
|
||||
console.log(req.body);
|
||||
res.status(200).json({ message: "OK" });
|
||||
} catch (error) {
|
||||
throw handleError(error, SERVICE_NAME, "resultsCallback");
|
||||
}
|
||||
}
|
||||
}
|
||||
export default DistributedUptimeController;
|
||||
Reference in new issue
Block a user