10 lines
310 B
TypeScript
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]);
|