From 487cbea4430adf3265a8f2259857157d5183f22c Mon Sep 17 00:00:00 2001 From: Nils-Johan Gynther Date: Sun, 19 Apr 2026 21:14:41 +0200 Subject: [PATCH] fix: ta bort NextRequest-typning i profile/route.ts withAuth handler --- frontend/app/api/profile/route.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/app/api/profile/route.ts b/frontend/app/api/profile/route.ts index b5813bb2..cf34a919 100644 --- a/frontend/app/api/profile/route.ts +++ b/frontend/app/api/profile/route.ts @@ -1,4 +1,4 @@ -import { NextRequest, NextResponse } from 'next/server'; +import { NextResponse } from 'next/server'; import { withAuth } from '../../../lib/with-auth'; const API_BASE = process.env.NEXT_PUBLIC_API_URL_INTERNAL || 'http://recipe-api:8080'; @@ -12,7 +12,7 @@ export const GET = withAuth(async (_req, session) => { return new NextResponse(text, { status: res.status, headers: { 'Content-Type': 'application/json' } }); }); -export const PATCH = withAuth(async (request: NextRequest, session) => { +export const PATCH = withAuth(async (request, session) => { const body = await request.json(); const res = await fetch(`${API_BASE}/api/users/me`, { method: 'PATCH',