refactor: modularize browser client
This commit is contained in:
1 parent
9c1a6acbb5
commit
f061dd2f38
8 files changed
+1279
-1226
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user