Port kube.services to TS

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface 2023-09-28 16:15:04 +01:00
parent 25862137da
commit 2417a7ba53

View File

@ -1,5 +1,3 @@
const testing = require("../services/mail.services");
import { logger } from "../utils/logger.utils"; import { logger } from "../utils/logger.utils";
async function getAlive() { async function getAlive() {
@ -9,16 +7,11 @@ async function getAlive() {
async function getReady() { async function getReady() {
logger.trace("kubeServices.getReady: ready hook checked"); logger.trace("kubeServices.getReady: ready hook checked");
testing.send({
to: "fred@fjla.uk",
subject: "OwlBoard Test",
txt: "This is a test message from OwlBoard (testing)",
});
return "not_implemented"; return "not_implemented";
} }
async function getTime() { async function getTime() {
var now = new Date(); var now: Date = new Date();
return { responseGenerated: now }; return { responseGenerated: now };
} }