import "/client/templates/loading.html" import "/client/templates/user_page.html" import "/client/templates/not_found.html" import "/client/templates/account/login.html" Router.configure({ layoutTemplate: 'mainLayout', loadingTemplate: 'loading', notFoundTemplate: 'notFound', waitOn: function () { return Meteor.subscribe("url_res") } }) // Meteor.subscribe('user_res') Router.route("/") Router.route("/nelson", {name: 'mainItem'}) // Router.route("/login", {name: 'loginPage'}) AccountsTemplates.configureRoute('signIn'); AccountsTemplates.configureRoute('signUp'); Router.route("/user/:_id", { name: 'userPage' }) Router.onBeforeAction('dataNotFound',{only: 'userPage'})