update
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
export * from './proxy/http-proxy.ts'
|
||||
export * from './proxy/file-proxy.ts'
|
||||
export * from './proxy/minio-proxy.ts'
|
||||
export * from './proxy/ai-proxy.ts'
|
||||
|
||||
export * from './get-router.ts'
|
||||
|
||||
@@ -304,6 +304,8 @@ export const handleRequest = async (req: http.IncomingMessage, res: http.ServerR
|
||||
let appFile = await userApp.getFile(appFileUrl);
|
||||
if (!appFile && url.endsWith('/')) {
|
||||
appFile = await userApp.getFile(appFileUrl + 'index.html');
|
||||
} else if (!appFile && !url.endsWith('/')) {
|
||||
appFile = await userApp.getFile(appFileUrl + '.html');
|
||||
}
|
||||
if (isExist.proxy) {
|
||||
let proxyUrl = appFile || isExist.indexFilePath;
|
||||
|
||||
Reference in New Issue
Block a user