Skip to content

Commit

Permalink
feat: proxy resodata
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Mar 14, 2024
1 parent 90b72d6 commit 235439f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions server/api/resodata/[...slug].ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default defineEventHandler(async (event) => {
const url = getRequestURL(event);
const req = toWebRequest(event);
const pathname = url.pathname.slice('/resodata'.length);
return fetch(`https://reso-data.kmou424.moe/${pathname}`, req);
});

0 comments on commit 235439f

Please sign in to comment.