Skip to main content

v2-api-endpoints

Describes how to add Express routes under app/src/api/v2: validate middleware with Zod, shared @shared/validation (domain + http), server errors via the v2 errorHandler, responseUtils for JSON bodies, colocated supertest suites, extracting domain operations (DomainFailure, no HTTP in domain), and updating types/src/v2/endpoints for response shapes. Use when creating or changing v2 HTTP endpoints, route handlers, tests, validation wiring, or @offnominal/ndb2-api-types v2 exports; pairs with v2-database-queries for data access and domain-operations for shared business logic.

跳到安装

来源信息

仓库
Off-Nominal/ndb2
最近来源活动
2026年5月14日 16:20
检测到的 SKILL.md 语言
英语
星标
0
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。