Skip to content

Commit

Permalink
chore: move file rediret-to
Browse files Browse the repository at this point in the history
  • Loading branch information
rmonnier9 committed Oct 15, 2024
1 parent d22d79d commit 52830ed
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app/api/auth/agent-connect/callback/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { agentConnectAuthenticate } from '#clients/authentication/agent-connect/
import { HttpForbiddenError } from '#clients/exceptions';
import { getAgent } from '#models/user/agent';
import { logFatalErrorInSentry } from '#utils/sentry';
import { redirectTo } from '#utils/server-side-helper/app/redirect-to';
import { cleanPathFrom, getPathFrom, setAgentSession } from '#utils/session';
import withSession from '#utils/session/with-session';
import { redirectTo } from '../../utils';
import { AgentConnectFailedException } from '../agent-connect-types';

export const GET = withSession(async function callbackRoute(req) {
Expand Down
2 changes: 1 addition & 1 deletion app/api/auth/agent-connect/login/route.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { agentConnectAuthorizeUrl } from '#clients/authentication/agent-connect/strategy';
import { logFatalErrorInSentry } from '#utils/sentry';
import { redirectTo } from '#utils/server-side-helper/app/redirect-to';
import { setPathFrom } from '#utils/session';
import withSession from '#utils/session/with-session';
import { NextResponse } from 'next/server';
import { redirectTo } from '../../utils';
import { AgentConnectFailedException } from '../agent-connect-types';

export const GET = withSession(async function loginRoute(req) {
Expand Down
2 changes: 1 addition & 1 deletion app/api/auth/agent-connect/logout-callback/route.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import logErrorInSentry from '#utils/sentry';
import { redirectTo } from '#utils/server-side-helper/app/redirect-to';
import { cleanAgentSession, cleanPathFrom, getPathFrom } from '#utils/session';
import withSession from '#utils/session/with-session';
import { redirectTo } from '../../utils';
import { AgentConnectLogoutFailedException } from '../agent-connect-types';

export const GET = withSession(async function logoutCallbackRoute(req) {
Expand Down
2 changes: 1 addition & 1 deletion app/api/auth/agent-connect/logout/route.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { agentConnectLogoutUrl } from '#clients/authentication/agent-connect/strategy';
import logErrorInSentry from '#utils/sentry';
import { redirectTo } from '#utils/server-side-helper/app/redirect-to';
import { setPathFrom } from '#utils/session';
import withSession from '#utils/session/with-session';
import { NextResponse } from 'next/server';
import { redirectTo } from '../../utils';
import { AgentConnectLogoutFailedException } from '../agent-connect-types';

export const GET = withSession(async function logoutRoute(req) {
Expand Down
2 changes: 1 addition & 1 deletion app/api/auth/france-connect/callback/route.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { franceConnectAuthenticate } from '#clients/authentication/france-connect/strategy';
import logErrorInSentry from '#utils/sentry';
import { redirectTo } from '#utils/server-side-helper/app/redirect-to';
import { setHidePersonalDataRequestFCSession } from '#utils/session';
import withSession from '#utils/session/with-session';
import { redirectTo } from '../../utils';
import { FranceConnectFailedException } from '../france-connect-types';

export const GET = withSession(async function callbackRoute(req) {
Expand Down
2 changes: 1 addition & 1 deletion app/api/auth/france-connect/login/route.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { FranceConnectAuthorizeUrl } from '#clients/authentication/france-connect/strategy';
import { logFatalErrorInSentry } from '#utils/sentry';
import { redirectTo } from '#utils/server-side-helper/app/redirect-to';
import withSession from '#utils/session/with-session';
import { NextResponse } from 'next/server';
import { redirectTo } from '../../utils';
import { FranceConnectFailedException } from '../france-connect-types';

export const GET = withSession(async function loginRoute(req) {
Expand Down
2 changes: 1 addition & 1 deletion app/api/auth/france-connect/logout-callback/route.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import logErrorInSentry from '#utils/sentry';
import { redirectTo } from '#utils/server-side-helper/app/redirect-to';
import { getPathFrom } from '#utils/session';
import withSession from '#utils/session/with-session';
import { redirectTo } from '../../utils';
import { FranceConnectLogoutFailedException } from '../france-connect-types';

export const GET = withSession(async function logoutCallbackRoute(req) {
Expand Down
2 changes: 1 addition & 1 deletion app/api/auth/france-connect/logout/route.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { franceConnectLogoutUrl } from '#clients/authentication/france-connect/strategy';
import logErrorInSentry from '#utils/sentry';
import { redirectTo } from '#utils/server-side-helper/app/redirect-to';
import { setPathFrom } from '#utils/session';
import withSession from '#utils/session/with-session';
import { NextResponse } from 'next/server';
import { redirectTo } from '../../utils';
import { FranceConnectLogoutFailedException } from '../france-connect-types';

export const GET = withSession(async function logoutRoute(req) {
Expand Down
File renamed without changes.

0 comments on commit 52830ed

Please sign in to comment.