Not sure if an issue or if im just approaching this wrong. but i am unable to use the the queryParameters of the request due to its protection level is internal.
let customRule: Server.Rule = .custom { request in
print(request.queryParameters)
let id = request.queryParameters.first(where: {$0.name == "id"})?.value
return id == "1"
}
'name' is inaccessible due to 'internal' protection level
'value' is inaccessible due to 'internal' protection level
Not sure if an issue or if im just approaching this wrong. but i am unable to use the the queryParameters of the request due to its protection level is internal.
'name' is inaccessible due to 'internal' protection level
'value' is inaccessible due to 'internal' protection level