connections page improvements

This commit is contained in:
2024-12-19 19:43:03 -08:00
parent 589c3f2890
commit c022baa97c
2 changed files with 37 additions and 28 deletions

View File

@@ -28,5 +28,10 @@ export const GET: RequestHandler = async ({ url }) => {
if (!peers) {
error(500, "Error getting info from OPNsense API");
}
return new Response(JSON.stringify(peers));
return new Response(JSON.stringify(peers), {
headers: {
'Content-Type': 'application/json',
'Cache-Control': 'max-age=5',
}
});
};