Post(_:handler:)

Create a POST Route with a closure

Route.swift:173
func Post<RouteOutput, Context>(_ routerPath: RouterPath = "", handler: @escaping (Request, Context) async throws -> RouteOutput) -> Route<_RouteHandlerClosure<RouteOutput, Context>, Context> where RouteOutput : ResponseGenerator, Context : RouterRequestContext

Parameters

routerPath

Route path, relative to group route is defined in

handler

Router handler closure