express-system-status
Version:
Add routes to check the env , configs & status of your system
32 lines • 1.21 kB
HTML
<html>
<head>
<base href="/">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="fragment" content="!">
<title>System Status</title>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<style>
/* This helps the ng-show/ng-hide animations start at the right place. */
/* Since Angular has this but needs to load, this gives us the class early. */
.ng-hide { display: none; }
</style>
</head>
<body ng-app="myApp" ng-controller="Ctrl as vm">
<h1>Express-System-Status</h1>
<a ng-href="{{vm.locationApi}}">System Status - JSON</a>
<br>
<a ng-href="{{vm.locationHtml}}">System Status - HTML/Dashboard</a>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.9/angular.min.js"></script>
<script>
var myApp = angular.module('myApp', []);
myApp.controller('Ctrl', function($scope , $location) {
var vm = this
vm.locationHtml= window.location.pathname + 'status.html'
vm.locationApi = window.location.pathname + 'api'
})
</script>
</body>
</html>