Get route name for /
MODIFY
lib/protocol/routes.js
lib/protocol/routes.js
@@ -655,7 +655,8 @@ class Route {
function routeToCommandName (endpoint, method) {
let dstRoute = null;
- const actualEndpoint = _.startsWith(endpoint, '/') ? endpoint : `/${endpoint}`;
+ const actualEndpoint = endpoint === '/' ? '' :
+ (_.startsWith(endpoint, '/') ? endpoint : `/${endpoint}`);
for (let currentRoute of _.keys(METHOD_MAP)) {
const route = new Route(currentRoute);
// we don't care about the actual session id for matching

Get route name for /