fix(middleware): allow usage of basePath in index route
#227
+88
−39
basePath in index route
#227