chore: offload retrieval of environment variables from jwt.ts to env.ts

This commit is contained in:
2026-01-02 22:57:03 +01:00
parent f86630c51e
commit 4bf39c7fdf
5 changed files with 48 additions and 47 deletions

View File

@@ -1,5 +1,6 @@
import z from 'zod';
// GET /api/v1/link/short
const shortLinkRequestSchemaQuery = z.object({
// https://zod.dev/v4?id=stringbool
length: z.coerce
@@ -20,6 +21,7 @@ export const shortLinkRequestSchema = z.object({
});
export type ShortLinkRequestDTO = z.TypeOf<typeof shortLinkRequestSchema>;
// GET /api/v1/link/fromWordlist
const sentenceLinkRequestSchemaQuery = z.object({
// https://zod.dev/v4?id=stringbool
withSubdomain: z.stringbool('WithSubdomain must be a boolean')
@@ -31,6 +33,7 @@ export const sentenceLinkRequestSchema = z.object({
});
export type SentenceLinkRequestDTO = z.TypeOf<typeof sentenceLinkRequestSchema>;
// response for both /api/v1/link/short and /api/v1/link/fromWordlist
/**
* @swagger