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

+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