refactor(api): 🔥 Remove all useless route metadata objects

This commit is contained in:
Jesse Wierzbinski 2024-12-30 20:18:48 +01:00
parent a9ea5eb672
commit 4926d6ff5d
No known key found for this signature in database
137 changed files with 410 additions and 1830 deletions

View file

@ -1,21 +1,10 @@
import { apiRoute, applyConfig } from "@/api";
import { apiRoute } from "@/api";
import { createRoute } from "@hono/zod-openapi";
import type { Entity } from "@versia/federation/types";
import { z } from "zod";
import { InboxJobType, inboxQueue } from "~/classes/queues/inbox";
import { ErrorSchema } from "~/types/api";
export const meta = applyConfig({
auth: {
required: false,
},
ratelimits: {
duration: 60,
max: 500,
},
route: "/users/:uuid/inbox",
});
export const schemas = {
param: z.object({
uuid: z.string().uuid(),