function routerCreator(routes) {
  return function (app) {
    app = createRouter(app);

    for (var i = 0, len = routes.length; i < len; ++i)