mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-19 15:22:38 +08:00
chore: update cors default path
This commit is contained in:
@@ -23,7 +23,7 @@ export enum Path {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export enum ApiPath {
|
export enum ApiPath {
|
||||||
Cors = "/api/cors",
|
Cors = "",
|
||||||
OpenAI = "/api/openai",
|
OpenAI = "/api/openai",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -81,8 +81,6 @@ export function createUpstashClient(store: SyncStore) {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
path(path: string, proxyUrl: string = "") {
|
path(path: string, proxyUrl: string = "") {
|
||||||
// let url = config.endpoint;
|
|
||||||
|
|
||||||
if (!path.endsWith("/")) {
|
if (!path.endsWith("/")) {
|
||||||
path += "/";
|
path += "/";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user