Skip to content

fromHono options "base" is not respected #288

@john-ko

Description

@john-ko

steps to reproduce

npm create cloudflare@latest -- my-first-worker

-> Application starter
-> API starter
...
cd my-first-worker
edit src/index.ts and add to fromHono options

base: "/api/v1"
Image

npm run dev

  • curl 'http://localhost:8787/api/v1/api/tasks?page=1' -> 404
  • curl 'http://localhost:8787/api/tasks?page=1 -> 200

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions