hemerajs / hemera

🔬 Writing reliable & fault-tolerant microservices in Node.js https://hemerajs.github.io/hemera/
MIT License
806 stars 70 forks source link

hemera-web can support custom the route url? #84

Closed arden closed 7 years ago

arden commented 7 years ago

hemera-web can support custom the route url? http://localhost:3000/?topic=math&cmd=add&a=10&b=10 like as http://localhost:3000/math/cmd/?a=10&b=10

StarpTech commented 7 years ago

Hi @arden hemera-web works with query and payload to identify the pattern. http://localhost:3000/math/cmd is the url but we can implement a pattern to support custom paths variables /{topic}/cmd/{command} feel free to create PR its should be trivial.

StarpTech commented 7 years ago

@arden after the rewrite of hemera-web we have support for url params. http://localhost:3000/math/add?a=1&b=2