feat: Adds view route parsing tests.

This commit is contained in:
2025-01-20 10:51:07 -05:00
parent 2de85ed758
commit affd9b5d81
14 changed files with 552 additions and 59 deletions

View File

@@ -26,7 +26,7 @@ public struct User: Codable, Equatable, Identifiable, Sendable {
public extension User {
struct Create: Codable, Sendable {
struct Create: Codable, Sendable, Equatable {
public let username: String
public let email: String
public let password: String
@@ -45,7 +45,7 @@ public extension User {
}
}
struct Login: Codable, Sendable {
struct Login: Codable, Sendable, Equatable {
public let username: String?
public let email: String?
public let password: String
@@ -80,6 +80,11 @@ public extension User {
struct Update: Codable, Equatable, Sendable {
public let username: String?
public let email: String?
public init(username: String?, email: String?) {
self.username = username
self.email = email
}
}
}