Apply fix to testing routes

This commit is contained in:
Andrew Pennington 2024-08-19 12:19:37 +01:00
parent 622851c2ed
commit 6189d17539
No known key found for this signature in database
GPG key ID: E9DA097213FD17EA
2 changed files with 2 additions and 6 deletions

View file

@ -1,7 +1,5 @@
import { NextResponse } from 'next/server';
async function requestHandler(_request: Request): NextResponse {
export async function GET(_request: Request) {
return NextResponse.json({ 'response': 'Hello World' });
}
export { requestHandler as GET };

View file

@ -1,7 +1,5 @@
import { NextResponse } from 'next/server';
async function requestHandler(_request: Request): NextResponse {
export async function GET(_request: Request) {
return NextResponse.json({ 'time': Date.now() });
}
export { requestHandler as GET };