fix: account credentials, record deletion refresh and backup recovery

This commit is contained in:
陈煜 committed 2026-10-03 11:23:19 +08:00
1 parent 9adf7fdbc5
commit e77650f0c0
22 files changed
+711 -115

No files matched your search

+2
View File
@@ -4,6 +4,7 @@ import { scheduleInput } from './schedules';
import { z } from 'zod';
import {
credentials,
credentialChange,
positionInput,
positionMeta,
revisionInput,
@@ -27,6 +28,7 @@ export function setupOpenApi(app: INestApplication) {
const bodies: Record<string, z.ZodType> = {
'POST /api/auth/register': credentials,
'POST /api/auth/login': credentials,
'PATCH /api/auth/credentials': credentialChange,
'POST /api/auth/reveal': credentials.pick({ password: true }),
'POST /api/positions': positionInput,
'PATCH /api/positions/{id}': positionMeta,