feat: modular domain driven boilerplate
This commit is contained in:
12
modules/identity/routes/identities/resolve/spec.ts
Normal file
12
modules/identity/routes/identities/resolve/spec.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { NotFoundError, route, UnauthorizedError } from "@platform/relay";
|
||||
import z from "zod";
|
||||
|
||||
import { IdentitySchema } from "../../../models/identity.ts";
|
||||
|
||||
export default route
|
||||
.get("/api/v1/identities/:id/resolve")
|
||||
.params({
|
||||
id: z.string(),
|
||||
})
|
||||
.response(IdentitySchema)
|
||||
.errors([UnauthorizedError, NotFoundError]);
|
||||
Reference in New Issue
Block a user