Clean up block audit page & tweak color scheme

This commit is contained in:
Mononaut committed 2022-10-28 18:49:28 -06:00
1 parent d86f045150
commit b6343ddc2d
8 files changed
+222 -75

No files matched your search

+6
View File
@@ -238,6 +238,12 @@ class MiningRoutes {
public async $getBlockAudit(req: Request, res: Response) {
try {
const audit = await BlocksAuditsRepository.$getBlockAudit(req.params.hash);
if (!audit) {
res.status(404).send(`This block has not been audited.`);
return;
}
res.header('Pragma', 'public');
res.header('Cache-control', 'public');
res.setHeader('Expires', new Date(Date.now() + 1000 * 3600 * 24).toUTCString());