check images and dark mode

This commit is contained in:
polv committed 2026-03-22 00:41:56 +07:00
1 parent 978ebfa75f
commit 904cdd0413
10 files changed
+122 -19

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
interface Env {
YOMITAN_STORAGE_API_TOKEN: string;
}
+6
View File
@@ -13,6 +13,12 @@
export default {
async fetch(request, env) {
// Auth check first
const auth = request.headers.get("Authorization");
if (auth !== `Bearer ${env.YOMITAN_STORAGE_API_TOKEN}`) {
return new Response("Unauthorized", { status: 401 });
}
const url = new URL(request.url);
// List files: GET /files
+1
View File
@@ -38,6 +38,7 @@
"skipLibCheck": true,
"types": [
"./worker-configuration.d.ts",
"./env.d.ts",
"node"
]
},