Skip to content

Commit

Permalink
Fix: Change default config, making deploy more convient
Browse files Browse the repository at this point in the history
  • Loading branch information
cwxia0s committed Nov 14, 2024
1 parent 2f7baa1 commit 8bba644
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ export default {
}

// 这里决定是否允许新建设备
const isAllowNewDevice = false
const isAllowNewDevice = true
// 是否允许查询设备数量
const isAllowQueryNums = false
const isAllowQueryNums = true
// 根路径
const rootPath = '/'
// Basic Auth username:password
Expand Down Expand Up @@ -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)

Expand Down
8 changes: 4 additions & 4 deletions main_kv.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ export default {
}

// 这里决定是否允许新建设备
const isAllowNewDevice = false
const isAllowNewDevice = true
// 是否允许查询设备数量
const isAllowQueryNums = false
const isAllowQueryNums = true
// 根路径
const rootPath = '/'
// Basic Auth username:password
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 8bba644

Please sign in to comment.