2019-08-14 09:48:44 +00:00
|
|
|
import Auth from './Auth';
|
|
|
|
import Confirmation from './Confirmation';
|
|
|
|
import Signup from './Signup';
|
|
|
|
import PasswordEdit from './PasswordEdit';
|
|
|
|
import ResetPassword from './ResetPassword';
|
2019-08-25 14:29:28 +00:00
|
|
|
import { frontendURL } from '../../helper/URLHelper';
|
2019-08-14 09:48:44 +00:00
|
|
|
|
|
|
|
export default {
|
|
|
|
routes: [
|
|
|
|
{
|
2019-08-25 14:29:28 +00:00
|
|
|
path: frontendURL('auth'),
|
2019-08-14 09:48:44 +00:00
|
|
|
name: 'auth',
|
|
|
|
component: Auth,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'confirmation',
|
|
|
|
name: 'auth_confirmation',
|
|
|
|
component: Confirmation,
|
|
|
|
props: route => ({
|
|
|
|
config: route.query.config,
|
|
|
|
confirmationToken: route.query.confirmation_token,
|
|
|
|
redirectUrl: route.query.route_url,
|
|
|
|
}),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'password/edit',
|
|
|
|
name: 'auth_password_edit',
|
|
|
|
component: PasswordEdit,
|
|
|
|
props: route => ({
|
|
|
|
config: route.query.config,
|
|
|
|
resetPasswordToken: route.query.reset_password_token,
|
|
|
|
redirectUrl: route.query.route_url,
|
|
|
|
}),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'signup',
|
|
|
|
name: 'auth_signup',
|
|
|
|
component: Signup,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'reset/password',
|
|
|
|
name: 'auth_reset_password',
|
|
|
|
component: ResetPassword,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
};
|