Skip to content

Commit

Permalink
oups: export getPath function
Browse files Browse the repository at this point in the history
  • Loading branch information
rphlmr committed Jan 14, 2025
1 parent 79ef314 commit 89bc37c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,5 @@ dist
.history
.react-router
/build
build
.wrangler
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-router-hono-server",
"version": "2.7.0",
"version": "2.7.1",
"type": "module",
"description": "The Vite plugin you need to create a Hono server for your React Router app in less than 10 seconds.",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion src/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@ export function redirect(c: Context, location: string) {
*
* If the path ends with `.data` (React Router Single Fetch query), it will be removed.
*/
function getPath(c: Context) {
export function getPath(c: Context) {
return c.req.path.replace(".data", "");
}

0 comments on commit 89bc37c

Please sign in to comment.