update test route
This commit is contained in:
parent
7141d74525
commit
c1a597b9a2
@ -101,7 +101,9 @@ const dataSchema = z.object({
|
|||||||
const namespace = "ingress-nginx"
|
const namespace = "ingress-nginx"
|
||||||
|
|
||||||
app.post("/test", async (req, res) => {
|
app.post("/test", async (req, res) => {
|
||||||
res.status(200).send({ message: "Orchestrator is up and running." })
|
const pods = await coreV1Api.listNamespacedPod(namespace)
|
||||||
|
res.status(200).send({ pods: pods.body.items.map(item => item?.metadata?.generateName), message: "Orchestrator is up and running." })
|
||||||
|
// res.status(200).send({ message: "Orchestrator is up and running." })
|
||||||
})
|
})
|
||||||
|
|
||||||
app.post("/start", async (req, res) => {
|
app.post("/start", async (req, res) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user