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.

26 lines
532 B

преди 4 години
import "/client/templates/loading.html"
преди 4 години
import "/client/templates/user_page.html"
преди 4 години
import "/client/templates/not_found.html"
преди 4 години
Router.configure({
layoutTemplate: 'mainLayout',
loadingTemplate: 'loading',
преди 4 години
notFoundTemplate: 'notFound',
преди 4 години
waitOn: function () {
return Meteor.subscribe("url_res")
}
})
преди 4 години
// Meteor.subscribe('user_res')
преди 4 години
Router.route("/")
Router.route("/nelson", {name: 'mainItem'})
Router.route("/user/:_id", {
преди 4 години
name: 'userPage'
преди 4 години
})
преди 4 години
Router.onBeforeAction('dataNotFound',{only: 'userPage'})