summaryrefslogtreecommitdiffstats
path: root/server/model/remote_browser.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/model/remote_browser.js')
-rw-r--r--server/model/remote_browser.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/server/model/remote_browser.js b/server/model/remote_browser.js
new file mode 100644
index 0000000..49299ad
--- /dev/null
+++ b/server/model/remote_browser.js
@@ -0,0 +1,17 @@
+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;