Files
cssd-back/resources/js/vue/router/paths.js
T
2019-04-29 19:24:18 +04:30

105 lines
2.1 KiB
JavaScript
Vendored

/**
* Define all of your application routes here
* for more information on routes, see the
* official documentation https://router.vuejs.org/en/
*/
export default [
{
path: '/dashboard',
name: 'Dashboard',
view: 'Dashboard',
},
{
path: '/my-info',
name: 'MyInfo',
view: 'User/MyInfo'
},
{
path: '/manage-users',
name: 'ManageUsers',
view: 'User/List',
},
{
path: '/test-type/create',
name: 'AddTestType',
view: 'TestType/AddEdit'
},
{
path: '/test-type/:testType/edit',
name: 'EditTestType',
view: 'TestType/AddEdit'
},
{
path: '/test-types',
name: 'ListTestType',
view: 'TestType/List'
},
{
path: '/medical-center',
name: 'ManageMedicalCenter',
view: 'MedicalCenter/List'
},
{
path: '/medical-center/create',
name: 'AddMedicalCenter',
view: 'MedicalCenter/AddEdit'
},
{
path: '/medical-center/:medicalCenter/edit',
name: 'EditMedicalCenter',
view: 'MedicalCenter/AddEdit'
},
{
path: '/add-operator/:medicalCenter',
name: 'AddOperator',
view: 'Auth/Register'
},
{
path: '/operator-list/:medicalCenter',
name: 'OperatorList',
view: 'MedicalCenter/OperatorList'
},
{
path: '/login',
name: 'Login',
view: 'Auth/Login',
meta: {
public: true, // Allow access to even if not logged in
onlyWhenLoggedOut: true
}
},
{
path: '/register',
name: 'Register',
view: 'Auth/Register',
meta: {
public: true, // Allow access to even if not logged in
onlyWhenLoggedOut: true
}
},
{
path: '/forgot-password',
name: 'ForgotPassword',
view: 'Auth/ForgotPassword',
meta: {
public: true, // Allow access to even if not logged in
onlyWhenLoggedOut: true
},
},
{
path: '/resualt-test',
name: 'AllResultTest',
view: 'TestResult/List'
},
{
path: '/add-test-result',
name: 'SubmitTestResult',
view: 'TestResult/AddEdit'
},
{
path: '/test-result/:testResult/edit',
name: 'EditTestResult',
view: 'TestResult/AddEdit'
},
]