Skip to content

Commit

Permalink
feat: remove originalUrlPath helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
Hebilicious committed Jul 10, 2023
1 parent ae267f6 commit 459841b
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/utils/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,6 @@ export function getRequestURL(
return new URL(path, `${protocol}://${host}`);
}

export function setOriginalUrlPath(event: H3Event, url: string) {
// eslint-disable-next-line @typescript-eslint/no-extra-semi
(event.node.req as any).originalUrlPath = url;
}

export function getOriginalUrlPath(event: H3Event) {
return (event.node.req as any).originalUrlPath as string;
}

export function setUrlPath(event: H3Event, url: string) {
event.node.req.url = url;
}
Expand Down

0 comments on commit 459841b

Please sign in to comment.