mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-03 03:56:18 -04:00
[status page] create incident
This commit is contained in:
parent
8230cfe13f
commit
2955abb5d9
13 changed files with 273 additions and 60 deletions
17
server/model/incident.js
Normal file
17
server/model/incident.js
Normal file
|
@ -0,0 +1,17 @@
|
|||
const { BeanModel } = require("redbean-node/dist/bean-model");
|
||||
|
||||
class Incident extends BeanModel {
|
||||
|
||||
toPublicJSON() {
|
||||
return {
|
||||
id: this.id,
|
||||
style: this.style,
|
||||
title: this.title,
|
||||
content: this.content,
|
||||
pin: this.pin,
|
||||
createdDate: this.createdDate,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Incident;
|
Loading…
Add table
Add a link
Reference in a new issue