Skip to content

Commit

Permalink
feat: Update GET route to return JSON response
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrastopoulos committed Jun 17, 2024
1 parent 61ed860 commit 23d602d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/api/refresh/route.ts
Original file line number Diff line number Diff line change
@@ -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!'
});
Expand Down

0 comments on commit 23d602d

Please sign in to comment.