hfour / h4bff

H4's backend & frontend framework :cupid::wrench: https://hfour.github.io/h4bff/
MIT License
7 stars 2 forks source link

fix(RPCDispatcher): gracefully handle non existant services and methods #44

Closed spion closed 5 years ago

spion commented 5 years ago

Removed the exists method since the existence check wasn't quite reliable; moved it to the dispatcher itself.

This PR allows middleware to query serviceMethod and serviceInstance even when the specified service name and method are invalid. The middleware will now get a possibly undefined result which they need to handle accordingly.

wh4everest commented 5 years ago

Test?