mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-05-01 11:19:34 +00:00
Added Tests, Fixed Small Issue, Removed More Caching, and General Code Fixes
This commit is contained in:
parent
9e45249377
commit
dbbfc7a9d8
8 changed files with 116 additions and 28 deletions
|
@ -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 });
|
||||
|
|
|
@ -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 });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue