QPS Stats

This commit is contained in:
2022-03-31 17:17:52 +08:00
parent 44c3c620b0
commit 3dec71a542
7 changed files with 60 additions and 3 deletions

View File

@@ -1,6 +1,9 @@
import { authenticate, getTimeRanges, insertTimeRange } from "../../../libs/db";
import { addAPIQPS } from "../../../libs/stats";
export default function handler(req, res) {
addAPIQPS();
// get method
if (req.method === "GET") {
res.setHeader("Cache-Control", "no-cache no-store must-revalidate");