mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-01-31 00:53:37 +00:00
Fixed Unsplash Images Being Constant
This commit is contained in:
parent
414b1487da
commit
5001d32257
2 changed files with 6 additions and 2 deletions
|
@ -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.
|
||||
|
||||
- [ ] 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
|
||||
- [ ] Board sorting options (Boards Page)
|
||||
- [ ] Add list and card views to boards page
|
||||
|
|
|
@ -10,7 +10,11 @@ export async function GET() {
|
|||
|
||||
if (result?.response) {
|
||||
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 {
|
||||
return new NextResponse('Failed to get images', { status: 500 });
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue