require(_:)

Grabs the named parameter from the parameter bag. If the parameter does not exist, Abort(.internalServerError) is thrown. If the parameter value cannot be converted to String, Abort(.unprocessableEntity) is thrown.

Parameters+Require.swift:10
func require(_ name: String) throws -> String

Parameters

name

The name of the parameter.