mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
docs: 📝 Updated documentation for Lysand 0.4
Updated outdated documentation in preparation for the release of Lysand 0.4
This commit is contained in:
parent
5e9e05826b
commit
2e2b91d7a5
6 changed files with 153 additions and 222 deletions
|
|
@ -4,7 +4,7 @@ import type { MatchedRoute } from "bun";
|
|||
import { type Config, config } from "config-manager";
|
||||
import { LogLevel, type LogManager, type MultiLogManager } from "log-manager";
|
||||
import { RequestParser } from "request-parser";
|
||||
import { type ZodType, z } from "zod";
|
||||
import type { ZodType, z } from "zod";
|
||||
import { fromZodError } from "zod-validation-error";
|
||||
import {
|
||||
type AuthData,
|
||||
|
|
@ -59,18 +59,6 @@ export interface APIRouteExports {
|
|||
default: RouteHandler<APIRouteMetadata, z.AnyZodObject>;
|
||||
}
|
||||
|
||||
const exampleZodSchema = z.object({
|
||||
allowedMethods: z.array(z.string()),
|
||||
ratelimits: z.object({
|
||||
max: z.number(),
|
||||
duration: z.number(),
|
||||
}),
|
||||
route: z.string(),
|
||||
auth: z.object({
|
||||
required: z.boolean(),
|
||||
}),
|
||||
});
|
||||
|
||||
export const processRoute = async (
|
||||
matchedRoute: MatchedRoute,
|
||||
request: Request,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue