GithubHelp home page GithubHelp logo

default or wildcard route about hono HOT 4 CLOSED

honojs avatar honojs commented on August 25, 2024
default or wildcard route

from hono.

Comments (4)

justinnoel avatar justinnoel commented on August 25, 2024 1

Awesome! Thanks!

Trying it right now with just upgrading to Hono 0.0.15. Getting this:

Invalid state: ReadableStream is locked

This is coming from Miniflare (2.0.0). I'm going to try to resolve this and then confirm for you that the default routing is working properly.

from hono.

justinnoel avatar justinnoel commented on August 25, 2024 1

Woohoo 🥳! That definitely fixed the ReadableStream bug.

I've confirmed the default route feature addition is working perfectly.

Thanks so much for your amazing support!

from hono.

yusukebe avatar yusukebe commented on August 25, 2024

Hi @justinnoel
Yes, I think what you are saying is right. So, I've implemented "default route with wildcard" in #52
Your code and example below will work.

https://github.com/yusukebe/hono/blob/98924ce16498a118687414b192c1d5769ab62f2c/example/basic/index.js#L88-L91

I released latest version as v0.0.15 by npm registry. You can try if you upgrade Hono.

from hono.

yusukebe avatar yusukebe commented on August 25, 2024

Hi @justinnoel !

I fixed bugs about ReadableStream is locked error by this PR. #55
Now, Hono 0.0.16 is released. Please try it.

from hono.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.