refactor: modularize browser client

This commit is contained in:
br0tkasten committed 2026-06-13 08:22:11 +02:00
1 parent 9c1a6acbb5
commit f061dd2f38
8 files changed
+1279 -1226

No files matched your search

+9
View File
@@ -1,3 +1,7 @@
import {
handleClientAssetRequest,
isClientAssetPath
} from "./client-assets.js";
import { htmlPage } from "./page-template.js";
import {
handleNextcloudBlobRequest,
@@ -16,6 +20,11 @@ export function createRequestHandler() {
return;
}
if (isClientAssetPath(url.pathname)) {
await handleClientAssetRequest(url, res);
return;
}
if (url.pathname === "/api/nextcloud/list") {
await handleNextcloudListRequest(url, res);
return;