Request handler was previously checking if the user's current path was part of the array, instead of whether any of the elements in the array were part of the user's current path. Also added a return to avoid sending more than 1 status which caused server to crash.
Request handler was previously checking if the user's current path was part of the array, instead of whether any of the elements in the array were part of the user's current path. Also added a
return
to avoid sending more than 1 status which caused server to crash.