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.

29 line
712 B

4 年之前
import "/client/templates/loading.html"
4 年之前
import "/client/templates/user_page.html"
4 年之前
import "/client/templates/not_found.html"
4 年之前
import "/client/templates/account/login.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'})
4 年之前
// Router.route("/login", {name: 'loginPage'})
AccountsTemplates.configureRoute('signIn');
AccountsTemplates.configureRoute('signUp');
4 年之前
Router.route("/user/:_id", {
4 年之前
name: 'userPage'
4 年之前
})
4 年之前
Router.onBeforeAction('dataNotFound',{only: 'userPage'})