From 23d602da956d5bed44c017d70c53c1fd5cf858be Mon Sep 17 00:00:00 2001 From: Gabriel Hall Date: Mon, 17 Jun 2024 10:38:49 -0700 Subject: [PATCH] feat: Update GET route to return JSON response --- src/app/api/refresh/route.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/api/refresh/route.ts b/src/app/api/refresh/route.ts index fbcaaff..a9a104f 100644 --- a/src/app/api/refresh/route.ts +++ b/src/app/api/refresh/route.ts @@ -1,7 +1,7 @@ import { NextRequest, NextResponse } from 'next/server'; -export default function GET(req: NextRequest) { - return NextResponse.next({ +export async function GET(req: NextRequest) { + return NextResponse.json({ status: 200, statusText: 'Hello, World!' });