mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-10-01 01:25:45 -04:00
18 lines
385 B
JavaScript
18 lines
385 B
JavaScript
|
const { BeanModel } = require("redbean-node/dist/bean-model");
|
||
|
|
||
|
class RemoteBrowser extends BeanModel {
|
||
|
/**
|
||
|
* Returns an object that ready to parse to JSON
|
||
|
* @returns {object} Object ready to parse
|
||
|
*/
|
||
|
toJSON() {
|
||
|
return {
|
||
|
id: this.id,
|
||
|
url: this.url,
|
||
|
name: this.name,
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module.exports = RemoteBrowser;
|