mirror of
https://github.com/MarSeventh/CloudFlare-ImgBed.git
synced 2026-05-04 10:56:36 +00:00
Feat:适配D1数据库
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user