Fixed Unsplash Images Being Constant

This commit is contained in:
Ahmad 2024-05-01 16:58:27 -04:00
parent 414b1487da
commit 5001d32257
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF
2 changed files with 6 additions and 2 deletions

View file

@ -16,7 +16,7 @@ Currently, there is no documentation or wiki available but, I do plan to add one
This will also be published on the site some time soon but for now, the roadmap will be listed here. This will also be published on the site some time soon but for now, the roadmap will be listed here.
- [ ] Finish adding started at date feature - [ ] Finish adding started at date feature
- [X] Make board background image editable after board creation - [x] Make board background image editable after board creation
- [ ] Pagination for Audit Logs page - [ ] Pagination for Audit Logs page
- [ ] Board sorting options (Boards Page) - [ ] Board sorting options (Boards Page)
- [ ] Add list and card views to boards page - [ ] Add list and card views to boards page

View file

@ -10,7 +10,11 @@ export async function GET() {
if (result?.response) { if (result?.response) {
const newImages = result.response as Array<Record<string, any>>; const newImages = result.response as Array<Record<string, any>>;
return new NextResponse(JSON.stringify(newImages), { status: 200 }); const response = new NextResponse(JSON.stringify(newImages), {
status: 200,
});
response.headers.set('Cache-Control', 'no-store');
return response;
} else { } else {
return new NextResponse('Failed to get images', { status: 500 }); return new NextResponse('Failed to get images', { status: 500 });
} }