Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move auth path top level #9258

Merged
merged 3 commits into from
Feb 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/changelog/%5Fadmin/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {type ReactNode, Suspense} from 'react';
import {GET} from 'app/changelog/api/auth/[...nextauth]/route';
import {GET} from 'app/api/auth/[...nextauth]/route';
import type {Metadata} from 'next';
import {getServerSession} from 'next-auth/next';

Expand Down
2 changes: 1 addition & 1 deletion app/changelog/%5Fadmin/upload/route.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import crypto from 'crypto';

import {Storage} from '@google-cloud/storage';
import {GET as sessionHandler} from 'app/changelog/api/auth/[...nextauth]/route';
import {GET as sessionHandler} from 'app/api/auth/[...nextauth]/route';
import {NextRequest} from 'next/server';
import {getServerSession} from 'next-auth/next';

Expand Down
2 changes: 1 addition & 1 deletion app/changelog/[slug]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {Fragment, Suspense} from 'react';
import {type Category, type Changelog} from '@prisma/client';
import * as Sentry from '@sentry/nextjs';
import {GET as sessionHandler} from 'app/changelog/api/auth/[...nextauth]/route';
import {GET as sessionHandler} from 'app/api/auth/[...nextauth]/route';
import type {Metadata, ResolvingMetadata} from 'next';
import {unstable_cache} from 'next/cache';
import Link from 'next/link';
Expand Down
2 changes: 1 addition & 1 deletion src/actions/changelog.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use server';

import {GET as handler} from 'app/changelog/api/auth/[...nextauth]/route';
import {GET as handler} from 'app/api/auth/[...nextauth]/route';
import {revalidatePath, revalidateTag} from 'next/cache';
import {redirect} from 'next/navigation';
import {getServerSession} from 'next-auth/next';
Expand Down
Loading