Giter Site home page Giter Site logo

Add subrouter functionality about worktop HOT 6 CLOSED

lukeed avatar lukeed commented on August 16, 2024 6
Add subrouter functionality

from worktop.

Comments (6)

evanderkoogh avatar evanderkoogh commented on August 16, 2024 1

Sorry @lukeed, I completely forgot to reply to this. This is pretty much exactly what I was proposing indeed. My biggest piece of feedback is that I would call it .mount because that is how filesystem mounts work as well. That entire directory and all subdirectories and now managed by whatever you mounted there.

from worktop.

lukeed avatar lukeed commented on August 16, 2024 1

It will be mount. And it's coming in an upcoming @next release, which means it'll be part of 0.8

from worktop.

lukeed avatar lukeed commented on August 16, 2024 1

Closed by #96 and now available in worktop@next. Will be included in the next 0.8.0 stable release.

from worktop.

lukeed avatar lukeed commented on August 16, 2024

No worries! I forgot about filesystem mounting. I think that has decided it for us :D

from worktop.

tylerbrostrom avatar tylerbrostrom commented on August 16, 2024

If method name suggestions are still welcome, maybe .subrouter, .addSubrouter, .delegate, .delegateTo, or… stay with me now… .depute 🤣

from worktop.

janat08 avatar janat08 commented on August 16, 2024

You can just rename it however you like. I'd just go with the standard naming however inaccurate (what expressjs uses). I like never used expressjs but I'd probably find myself renaming it with my memory. Is this landing sometime soon?

from worktop.

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.