Skip to content

Commit

Permalink
fix: pass search params
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Mar 14, 2024
1 parent 77a69b8 commit 2a1acfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/api/resodata/[...slug].ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ export default defineEventHandler(async (event) => {
const url = getRequestURL(event);
const req = toWebRequest(event);
const pathname = url.pathname.slice('/api/resodata'.length);
return fetch(`https://reso-data.kmou424.moe${pathname}`, req);
return fetch(`https://reso-data.kmou424.moe${pathname}${url.search}`, req);
});

0 comments on commit 2a1acfe

Please sign in to comment.