example , if .zen has both GET and POST how to write?
public var path: String {
switch self {
case .zen:
return "/zen"
}
}
public var method: Moya.Method {
switch self {
case .zen
return //return what ?
}
}
The solution is to use two different enum cases that return the same path. Maybe fetchZen and createZen. Does that make sense?
OK锛宨t seems a good idea ~
Most helpful comment
The solution is to use two different enum cases that return the same
path. MaybefetchZenandcreateZen. Does that make sense?