[skip ci] refactor: proxy -> middleware

This commit is contained in:
nyagami
2024-11-30 00:35:45 +07:00
parent 195a913998
commit f352783ee1
8 changed files with 274 additions and 851 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ window.fetch = async (...args) => {
const [resource, config] = args;
if (resource.toString().includes('localhost'))
return await originalFetch(resource, config);
const _res = await originalFetch('http://localhost:3001/' + resource, {
const _res = await originalFetch('http://localhost:3000/' + resource, {
...config,
credentials: 'include',
mode: 'cors',