Feat:适配D1数据库

This commit is contained in:
MarSeventh
2025-08-22 18:20:10 +08:00
parent 6329091173
commit 81740fa2c2
35 changed files with 478 additions and 2309 deletions

View File

@@ -4,11 +4,7 @@ export async function onRequest(context) {
// API Token管理支持创建、删除、列出Token
const {
request,
env,
params,
waitUntil,
next,
data,
env
} = context;
const db = getDatabase(env);