You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

28 lines
712 B

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'})