我下载了一个名为MeteorAdmin的Meteor Starter项目。
此项目使用meteor-usersaccounts
包,其中一个html文件中包含此代码{{pathFor route='atSignIn'}}
。
atSignIn
没有在任何地方定义,我怀疑它是在useraccounts包中定义但是找不到它,任何人都有想法?
答案 0 :(得分:1)
this file的第45-56行。
// Allowed routes along with theirs default configuration values
AccountsTemplates.ROUTE_DEFAULT = {
changePwd: { name: "atChangePwd", path: "/change-password"},
enrollAccount: { name: "atEnrollAccount", path: "/enroll-account"},
ensureSignedIn: { name: "atEnsureSignedIn", path: null},
forgotPwd: { name: "atForgotPwd", path: "/forgot-password"},
resetPwd: { name: "atResetPwd", path: "/reset-password"},
signIn: { name: "atSignIn", path: "/sign-in"},
signUp: { name: "atSignUp", path: "/sign-up"},
verifyEmail: { name: "atVerifyEmail", path: "/verify-email"},
resendVerificationEmail: { name: "atResendVerificationEmail", path: "/send-again"}
};