code: function saveRouteToTheList(parsedUrl, action) {
                  // used to add options routes later
                  if (typeof allRoutesList[parsedUrl.url] === 'undefined') {
                      allRoutesList[parsedUrl.url] = [];
                  }
                  allRoutesList[parsedUrl.url].push(action);
              }
docs: Adds route and its action to the allRoutesList. It appends the action when route already exists in the list.
  @param resource Route URI
  @param action HTTP action