ToolController: impl signup

This commit is contained in:
Andrew Glaze
2025-05-23 13:26:13 -04:00
parent 49cd62da1d
commit c29f454881
7 changed files with 56 additions and 20 deletions

View File

@@ -5,6 +5,7 @@ extension MsgPackEncoder: @retroactive ContentEncoder, @retroactive @unchecked S
public func encode<E>(_ encodable: E, to body: inout ByteBuffer, headers: inout HTTPHeaders) throws where E : Encodable {
let data = try self.encode(encodable)
body.writeString(data.base64EncodedString())
headers.contentType = .init(type: "application", subType: "x-msgpack")
}
}