Skip to content

Commit

Permalink
fix: route match not taking basePath in account
Browse files Browse the repository at this point in the history
  • Loading branch information
dalechyn committed Jun 4, 2024
1 parent 9de40cf commit c832557
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frog-base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ export class FrogBase<
const isHandlerPresentOnImagePath = (() => {
const routes = inspectRoutes(this.hono)
const matchesWithoutParamsStash = this.hono.router
.match('GET', image)
.match('GET', this.basePath + parsePath(image))
.filter(
(routeOrParams) => typeof routeOrParams[0] !== 'string',
) as unknown as (
Expand Down

0 comments on commit c832557

Please sign in to comment.