mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-21 17:37:29 -07:00
add rate limit
This commit is contained in:
parent
480ba164f8
commit
eb1de15fe0
1 changed files with 6 additions and 0 deletions
|
@ -1,12 +1,18 @@
|
||||||
import { Bites } from "@/models/index.js";
|
import { Bites } from "@/models/index.js";
|
||||||
import define from "../../define.js";
|
import define from "../../define.js";
|
||||||
import { createBite } from "@/services/create-bite.js";
|
import { createBite } from "@/services/create-bite.js";
|
||||||
|
import { MINUTE } from "@/const.js";
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
tags: ["bites"],
|
tags: ["bites"],
|
||||||
|
|
||||||
requireCredential: true,
|
requireCredential: true,
|
||||||
|
|
||||||
|
limit: {
|
||||||
|
duration: MINUTE,
|
||||||
|
max: 30,
|
||||||
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: "object",
|
type: "object",
|
||||||
optional: false,
|
optional: false,
|
||||||
|
|
Loading…
Reference in a new issue