Add 'routeAuthenticated' group resolution options
RossComputerGuy opened this issue · comments
Edited
Currently routeAuthenticated
matches groups with .every()
, not .some()
.
Both behaviours should be supported.
Modified title and description.
It's generally a good idea top copy/paste conversations from Gitter when doing stuff like this.
Saves me a lot of work :)
Didn't really know what to call it.
I published a new version of @osjs/server
that uses .some()
by default.
Note-to-self: A solution for supporting both would be:
routeAuthenticated(string, callback, options);
Where options
can be either an Array
using default behavior or: {every: true, groups: []}
.