Implement push monitoring
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import "./uptime";
|
||||
import runCleanup from "./cleanup";
|
||||
|
||||
export {
|
||||
|
@@ -1,19 +0,0 @@
|
||||
import express from "express";
|
||||
import pack from "../../package.json";
|
||||
import startupTime from "../tools/startupTime";
|
||||
|
||||
const app = express();
|
||||
|
||||
app.get("/", (_req, res) => {
|
||||
res.status(200).json({
|
||||
running: true,
|
||||
version: pack.version,
|
||||
runningSince: startupTime.toISOString()
|
||||
});
|
||||
});
|
||||
|
||||
app.all("*", (_req, res) => {
|
||||
res.status(404).end();
|
||||
});
|
||||
|
||||
app.listen(80);
|
Reference in New Issue
Block a user