From 8bba6448095f56b0340b2df2af8eb7fbd13a5933 Mon Sep 17 00:00:00 2001 From: cwxia0s Date: Thu, 14 Nov 2024 20:10:05 +0800 Subject: [PATCH] Fix: Change default config, making deploy more convient --- main.js | 8 ++++---- main_kv.js | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/main.js b/main.js index 3b69ca4..301d168 100644 --- a/main.js +++ b/main.js @@ -5,9 +5,9 @@ export default { } // 这里决定是否允许新建设备 -const isAllowNewDevice = false +const isAllowNewDevice = true // 是否允许查询设备数量 -const isAllowQueryNums = false +const isAllowQueryNums = true // 根路径 const rootPath = '/' // Basic Auth username:password @@ -129,9 +129,9 @@ async function handleRequest(request, env, ctx) { class Handler { constructor(env) { this.version = "v2.1.2" - this.build = "2024-09-18 18:06:44" + this.build = "2024-11-14 20:07:34" this.arch = "js" - this.commit = "4b3c0086e69dd5b90f13ddd3bbb361c613f43aec" + this.commit = "2f7baa11bf7997b70dbcae54cfa5cfc9e43082c4" const db = new Database(env) diff --git a/main_kv.js b/main_kv.js index 15ae715..24ba67f 100644 --- a/main_kv.js +++ b/main_kv.js @@ -5,9 +5,9 @@ export default { } // 这里决定是否允许新建设备 -const isAllowNewDevice = false +const isAllowNewDevice = true // 是否允许查询设备数量 -const isAllowQueryNums = false +const isAllowQueryNums = true // 根路径 const rootPath = '/' // Basic Auth username:password @@ -129,9 +129,9 @@ async function handleRequest(request, env, ctx) { class Handler { constructor(env) { this.version = "v2.1.2" - this.build = "2024-09-18 18:06:44" + this.build = "2024-11-14 20:07:34" this.arch = "js" - this.commit = "4b3c0086e69dd5b90f13ddd3bbb361c613f43aec" + this.commit = "2f7baa11bf7997b70dbcae54cfa5cfc9e43082c4" const db = new Database(env)