mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-20 21:48:54 -04:00
[status page] create incident
This commit is contained in:
parent
8230cfe13f
commit
2955abb5d9
13 changed files with 273 additions and 60 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue