refactor: identity -> iam
This commit is contained in:
16
modules/iam/routes/access/is-allowed/spec.ts
Normal file
16
modules/iam/routes/access/is-allowed/spec.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { route } from "@platform/relay";
|
||||
import z from "zod";
|
||||
|
||||
export default route
|
||||
.post("/api/v1/identity/access/is-allowed")
|
||||
.body(
|
||||
z.strictObject({
|
||||
resource: z.strictObject({
|
||||
kind: z.string(),
|
||||
id: z.string(),
|
||||
attr: z.record(z.string(), z.any()),
|
||||
}),
|
||||
action: z.string(),
|
||||
}),
|
||||
)
|
||||
.response(z.boolean());
|
||||
Reference in New Issue
Block a user