QPS Stats
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import { authenticate, setLimit, getLimit } from "../../../libs/db";
|
||||
import { addAPIQPS } from "../../../libs/stats";
|
||||
|
||||
export default function handler(req, res) {
|
||||
addAPIQPS();
|
||||
// put method
|
||||
if (req.method === "PUT") {
|
||||
const { token, limit } = req.body;
|
||||
|
||||
Reference in New Issue
Block a user