Template
1
0
Files
boilerplate/spec/modules/auth/routes/authenticate.ts

10 lines
310 B
TypeScript

import { route } from "@spec/relay";
import { AuthenticationStrategyPayloadError } from "../errors.ts";
import { StrategyPayloadSchema } from "../strategies.ts";
export const authenticate = route
.post("/api/v1/authenticate")
.body(StrategyPayloadSchema)
.errors([AuthenticationStrategyPayloadError]);