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.
 
 
 

25 lines
532 B

import "/client/templates/loading.html"
import "/client/templates/user_page.html"
import "/client/templates/not_found.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("/user/:_id", {
name: 'userPage'
})
Router.onBeforeAction('dataNotFound',{only: 'userPage'})