From 79c4769671f96ebdcbf002b015e37033d01c3129 Mon Sep 17 00:00:00 2001 From: Sasha Klein Date: Fri, 27 Jun 2025 08:36:42 -0600 Subject: [PATCH] fix: tanstack start workos example --- .../start-workos/src/routes/{api/auth => }/callback.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename examples/react/start-workos/src/routes/{api/auth => }/callback.tsx (91%) diff --git a/examples/react/start-workos/src/routes/api/auth/callback.tsx b/examples/react/start-workos/src/routes/callback.tsx similarity index 91% rename from examples/react/start-workos/src/routes/api/auth/callback.tsx rename to examples/react/start-workos/src/routes/callback.tsx index edc7d29c13..3d3fc3fd8d 100644 --- a/examples/react/start-workos/src/routes/api/auth/callback.tsx +++ b/examples/react/start-workos/src/routes/callback.tsx @@ -1,9 +1,9 @@ import { createServerFileRoute } from '@tanstack/react-start/server'; -import { getConfig } from '../../../authkit/ssr/config'; -import { saveSession } from '../../../authkit/ssr/session'; -import { getWorkOS } from '../../../authkit/ssr/workos'; +import { getConfig } from '../authkit/ssr/config'; +import { saveSession } from '../authkit/ssr/session'; +import { getWorkOS } from '../authkit/ssr/workos'; -export const ServerRoute = createServerFileRoute('/api/auth/callback').methods({ +export const ServerRoute = createServerFileRoute('/callback').methods({ GET: async ({ request }) => { const url = new URL(request.url); const code = url.searchParams.get('code');