mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-09 11:41:30 -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 define from "../../define.js";
|
||||
import { createBite } from "@/services/create-bite.js";
|
||||
import { MINUTE } from "@/const.js";
|
||||
|
||||
export const meta = {
|
||||
tags: ["bites"],
|
||||
|
||||
requireCredential: true,
|
||||
|
||||
limit: {
|
||||
duration: MINUTE,
|
||||
max: 30,
|
||||
},
|
||||
|
||||
res: {
|
||||
type: "object",
|
||||
optional: false,
|
||||
|
|
Loading…
Reference in a new issue