module.exports = function(server) {
  var router = server.loopback.Router();
  router.get('/', (req, res) => res.render('index'));
  server.use(router);
};

module.exports = function(server) {
  var router = server.loopback.Router();
  // TODO: get pages list programmatically
  var pages = ['/', '/profile', '/storage'];
  router.get(pages, (req, res) => res.render('index'));
  server.use(router);
};

Support browser history on backend
Support browser history on backend
