Skip to content

Commit

Permalink
🔀 Intégration des dernières modifications de la version 3.14 (#1422)
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienPavon authored Nov 17, 2023
2 parents 725aff1 + 1a9f3c8 commit 0caf7ec
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/controllers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export * from './tableauxDeBord';
export * from './userAccount';
export * from './getDéclarationAccessibilitéPage';
export * from './getSuccèsPage';
export * from './signout';
export * from './upload';
export * from './v1Router';
export * from './raccordement';
10 changes: 10 additions & 0 deletions src/controllers/signout.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import asyncHandler from './helpers/asyncHandler';
import routes from '../routes';
import { v1Router } from './v1Router';

v1Router.get(
routes.LOGOUT_ACTION,
asyncHandler(async (request, response) => {
response.redirect(process.env.NEXT_APP_ACTIVATED === 'true' ? '/auth/signOut' : '/logout');
}),
);
2 changes: 1 addition & 1 deletion src/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class routes {
static ABONNEMENT_LETTRE_INFORMATION = '/abonnement-lettre-information.html';
static POST_SINSCRIRE_LETTRE_INFORMATION = '/s-inscrire-a-la-lettre-d-information';
static DECLARATION_ACCESSIBILITE = '/accessibilite.html';
static LOGOUT_ACTION = process.env.NEXT_APP_ACTIVATED === 'true' ? '/auth/signOut' : '/logout';
static LOGOUT_ACTION = '/signout';
static SIGNUP = '/signup.html';
static POST_SIGNUP = '/signup';

Expand Down

0 comments on commit 0caf7ec

Please sign in to comment.