mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-08 06:29:57 +08:00
[status page] create incident
This commit is contained in:
@@ -38,7 +38,10 @@ router.get("/api/status-page/incident", async (_, response) => {
|
||||
try {
|
||||
await checkPublished();
|
||||
|
||||
// TODO:
|
||||
response.json({
|
||||
ok: true,
|
||||
incident: (await R.findOne("incident", " pin = 1 AND active = 1")).toPublicJSON(),
|
||||
})
|
||||
|
||||
} catch (error) {
|
||||
send403(response, error.message);
|
||||
|
Reference in New Issue
Block a user