refactor button elements; change button types for search and filter actions in admin pages

This commit is contained in:
ImBenji
2026-04-23 23:24:36 +01:00
parent 194442ec4c
commit 0dd258bd1d
6 changed files with 16 additions and 12 deletions
+4 -1
View File
@@ -78,11 +78,14 @@ async function adminRoutes(fastify) {
});
// static assets (css + js) under /admin/assets/*
// use must-revalidate so the browser always checks for a newer copy;
// prevents the admin getting stuck on old js after a deploy.
fastify.register(fastifyStatic, {
root: assetsDir,
prefix: '/admin/assets/',
decorateReply: false,
cacheControl: false,
cacheControl: true,
maxAge: 0,
});
// top-level entry — redirect to articles