You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jsgi/routes can take a customRoutes config array. i'm not sure what the elements of that array should look like but 2 obvious choices are:
each element would be an array that becomes the arguments to declare
each element is an object similar to the r variable used in declare.
however the way in which the elements are added won't work no matter what the elements are. also, if you provide null or undefined as the customRoutes then an error occurs because it's assumed to always be an array. i couldn't decide which way to fix this
should we just remove customRoutes?
should customRoutes be an array of r-like objects and then avoid calling declare and just push them onto routes?
should customRoutes be an array of arrays so that for each element we call declare.apply(null, customRoutes[ i ]);?
The text was updated successfully, but these errors were encountered:
jsgi/routes can take a
customRoutes
config array. i'm not sure what the elements of that array should look like but 2 obvious choices are:declare
r
variable used indeclare
.however the way in which the elements are added won't work no matter what the elements are. also, if you provide
null
orundefined
as thecustomRoutes
then an error occurs because it's assumed to always be an array. i couldn't decide which way to fix thiscustomRoutes
?customRoutes
be an array ofr
-like objects and then avoid callingdeclare
and just push them ontoroutes
?customRoutes
be an array of arrays so that for each element we calldeclare.apply(null, customRoutes[ i ]);
?The text was updated successfully, but these errors were encountered: