Settings -> Data -> Storage measures the database, backups and sessions and every table (size, rows, growth, how long it is kept, how far back it reaches), and flags histories that are not being trimmed or have no limit. Event webhooks now keep a delivery log (last 100 per webhook, 14 days): what was sent, how it went, the message itself, and Send again, which resends it exactly as it was (same id and signature). Resends are audited and in the Change log. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
13 lines
550 B
TypeScript
13 lines
550 B
TypeScript
import { Router } from "express";
|
|
import { requireAuth, requireRole } from "../auth/middleware.js";
|
|
import { getDataUsage } from "../services/dataUsage.js";
|
|
import { asyncHandler } from "../utils/asyncHandler.js";
|
|
|
|
/** How big the app's own data is and whether it is being trimmed: for administrators (it names every table and how much each holds). */
|
|
export const dataUsageRouter = Router();
|
|
dataUsageRouter.use(requireAuth, requireRole("admin"));
|
|
|
|
dataUsageRouter.get("/", asyncHandler(async (_req, res) => {
|
|
res.json(await getDataUsage());
|
|
}));
|