Skip to content

Commit

Permalink
Add some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Jan 19, 2024
1 parent 33ae6db commit 5d6b5b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions todos-postgres-tutuorial/Sources/TodoRequestContext.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5d6b5b5

Please sign in to comment.