docs: 📝 Updated documentation for Lysand 0.4

Updated outdated documentation in preparation for the release of Lysand 0.4
This commit is contained in:
Jesse Wierzbinski 2024-04-14 13:33:02 -10:00
parent 5e9e05826b
commit 2e2b91d7a5
No known key found for this signature in database
6 changed files with 153 additions and 222 deletions

View file

@ -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,