ENV Var Fetch/Default needs rewriting

This commit is contained in:
Fred Boniface 2022-12-19 18:38:57 +00:00
parent b5d52eeaca
commit 9067079756
4 changed files with 13 additions and 4 deletions

2
app.js
View File

@ -26,7 +26,7 @@ app.use((err, req, res, next) => {
// Express Submodules: // Express Submodules:
app.use(express.json()); //JSON Parsing for POST Requests app.use(express.json()); //JSON Parsing for POST Requests
app.use(express.static('static')); //Serve static content from static app.use(express.static('static')); //Serve static content from /static
// Express Routes // Express Routes
app.use('/api/v1/test', testRtr); app.use('/api/v1/test', testRtr);

View File

@ -22,5 +22,7 @@ const server = {
}; };
module.exports = { module.exports = {
server server,
getPort,
getListen
} }

View File

@ -2,7 +2,7 @@ const express = require('express');
const router = express.Router(); const router = express.Router();
const kubeController = require('../controllers/kube.controllers'); const kubeController = require('../controllers/kube.controllers');
router.get('/alive', testController.getAlive); router.get('/alive', kubeController.getAlive);
router.get('/ready', kubeController.getReady); router.get('/ready', kubeController.getReady);
module.exports = router; module.exports = router

View File

@ -0,0 +1,7 @@
async function getReady(){
return "not_implemented";
};
module.exports = {
getReady
}