chore: offload retrieval of environment variables from jwt.ts to env.ts
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user