Skip to content

Commit

Permalink
fix(api): add content-type header
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonsaldan committed Jan 12, 2025
1 parent 209a53a commit d48a810
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/api/v1/sponsors/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ export async function GET(): Promise<NextResponse<SponsorsResponse>> {
headers: {
'Content-Type': 'application/json',
'Cache-Control': 'public, s-maxage=3600, stale-while-revalidate=7200',
'Access-Control-Allow-Origin': '*',
},
})
} catch (error: unknown) {
Expand All @@ -207,7 +208,9 @@ export async function GET(): Promise<NextResponse<SponsorsResponse>> {
{
status: 500,
headers: {
'Content-Type': 'application/json',
'Cache-Control': 'no-store',
'Access-Control-Allow-Origin': '*',
},
},
)
Expand Down

0 comments on commit d48a810

Please sign in to comment.