add new SlugRouter class and put slugsToRoute in there