Skip to content

Instantly share code, notes, and snippets.

@johngruen
Created February 11, 2014 16:01
Show Gist options
  • Save johngruen/8937762 to your computer and use it in GitHub Desktop.
Save johngruen/8937762 to your computer and use it in GitHub Desktop.
fxa paths
var Router = Backbone.Router.extend({
routes: {
'': 'redirectToSignup',
'signin': showView(SignInView),
'signup': showView(SignUpView),
'confirm': showView(ConfirmView),
'settings': showView(SettingsView),
'change_password': showView(ChangePasswordView),
//'delete_account': showView(DeleteAccountView),
'legal/terms': showView(TosView),
'legal/privacy': showView(PpView),
'cannot_create_account': showView(CannotCreateAccountView),
'verify_email': showView(CompleteSignUpView),
'reset_password': showView(ResetPasswordView),
'confirm_reset_password': showView(ConfirmResetPasswordView),
'complete_reset_password': showView(CompleteResetPasswordView),
'reset_password_complete': showView(ResetPasswordCompleteView),
'force_auth': showView(SignInView, { forceAuth: true })
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment