Added Tests, Fixed Small Issue, Removed More Caching, and General Code Fixes

This commit is contained in:
Ahmad 2025-01-01 16:46:43 -05:00
parent 9e45249377
commit dbbfc7a9d8
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF
8 changed files with 116 additions and 28 deletions

View file

@ -35,11 +35,6 @@ export async function GET(
return new NextResponse(JSON.stringify(auditLogs), {
status: 200,
headers: {
'Cache-Control': 'public, s-maxage=1',
'CDN-Cache-Control': 'public, s-maxage=30',
'Vercel-CDN-Cache-Control': 'public, s-maxage=60',
},
});
} catch (error) {
return new NextResponse(JSON.stringify(error), { status: 500 });

View file

@ -40,11 +40,6 @@ export async function GET(
return new NextResponse(JSON.stringify(card), {
status: 200,
headers: {
'Cache-Control': 'public, s-maxage=1',
'CDN-Cache-Control': 'public, s-maxage=30',
'Vercel-CDN-Cache-Control': 'public, s-maxage=60',
},
});
} catch (error) {
return new NextResponse(JSON.stringify(error), { status: 500 });