From 6453f08a30c115eec11e465dfa2b49f06fcf8a95 Mon Sep 17 00:00:00 2001 From: FORESTIER Fabien <fabien.forestier@soprasteria.com> Date: Mon, 5 Nov 2018 15:50:04 +0100 Subject: [PATCH] Add logout route as variable --- src/app/core/core-routing.module.ts | 2 +- src/app/routes.ts | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/app/core/core-routing.module.ts b/src/app/core/core-routing.module.ts index e9222245..dcccac25 100644 --- a/src/app/core/core-routing.module.ts +++ b/src/app/core/core-routing.module.ts @@ -10,7 +10,7 @@ export const routes: Routes = [ pathMatch: 'full', }, { - path: 'logout', + path: AppRoutes.logout.uri, component: LogoutComponent, data: { title: 'Déconnexion', diff --git a/src/app/routes.ts b/src/app/routes.ts index 8bd43b05..9d642715 100644 --- a/src/app/routes.ts +++ b/src/app/routes.ts @@ -1,10 +1,17 @@ // tslint:disable-next-line:variable-name export const AppRoutes = { + logout: { + uri: 'logout', + title: { + fr: 'Déconnexion', + en: 'Log out', + }, + }, signin: { uri: 'login', title: { fr: 'Connexion', - en: 'Sign In', + en: 'Log In', }, }, home: { -- GitLab