Routing Scope vs Resources #1908
-
Hi guys, congrats on the framework. It is nice and fun to play with. I have a question about the routing, that is not clear in the documentation. What's the practical difference between Scope and Resource in the routing. Why I can add services to a Scope but not to a Resource? I know a resource is registered into the ResourceMap, but looks like the Scope is too. So, I'm not sure what the real differences are, and I think that should be written in to the documentation. I'd be happy to send a PR if I figure this out. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
|
Beta Was this translation helpful? Give feedback.
Scope
has a privateRouter
type which can route incoming request to it's children services.Resource
does not know anything about routing.