Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 

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