diff --git a/todos-postgres-tutuorial/Sources/TodoRequestContext.swift b/todos-postgres-tutuorial/Sources/TodoRequestContext.swift index e52a38c8..08ec1fed 100644 --- a/todos-postgres-tutuorial/Sources/TodoRequestContext.swift +++ b/todos-postgres-tutuorial/Sources/TodoRequestContext.swift @@ -5,7 +5,9 @@ import Logging /// Custom request context setting up JSON decoding and encoding struct TodoRequestContext: HBRequestContext { var coreContext: HBCoreRequestContext + /// Set request decoder to be JSONDecoder var requestDecoder: JSONDecoder { .init() } + /// Set response encoder to be JSONEncdoer var responseEncoder: JSONEncoder { .init() } init(allocator: ByteBufferAllocator, logger: Logger) {