ENV Var Fetch/Default needs rewriting
This commit is contained in:
parent
b5d52eeaca
commit
9067079756
2
app.js
2
app.js
@ -26,7 +26,7 @@ app.use((err, req, res, next) => {
|
||||
|
||||
// Express Submodules:
|
||||
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
|
||||
app.use('/api/v1/test', testRtr);
|
||||
|
@ -22,5 +22,7 @@ const server = {
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
server
|
||||
server,
|
||||
getPort,
|
||||
getListen
|
||||
}
|
@ -2,7 +2,7 @@ const express = require('express');
|
||||
const router = express.Router();
|
||||
const kubeController = require('../controllers/kube.controllers');
|
||||
|
||||
router.get('/alive', testController.getAlive);
|
||||
router.get('/alive', kubeController.getAlive);
|
||||
router.get('/ready', kubeController.getReady);
|
||||
|
||||
module.exports = router;
|
||||
module.exports = router
|
7
src/services/kube.services.js
Normal file
7
src/services/kube.services.js
Normal file
@ -0,0 +1,7 @@
|
||||
async function getReady(){
|
||||
return "not_implemented";
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
getReady
|
||||
}
|
Reference in New Issue
Block a user