Fix get bets

pull/25/head
Emre KARTAL 11 months ago
parent 155e893561
commit 80b5f9ba51

@ -87,8 +87,10 @@ struct ProfileView: View {
Spacer() Spacer()
Image(systemName: "chevron.right") Image(systemName: "chevron.right")
.resizable()
.frame(width: 8, height: 12)
.foregroundColor(parameters[index].itemColor) .foregroundColor(parameters[index].itemColor)
.padding(.trailing, 8) .padding(.trailing, 14)
} }
.padding(.vertical, 15) .padding(.vertical, 15)
.background(parameters[index].backgroundColor) .background(parameters[index].backgroundColor)

@ -20,7 +20,7 @@ public struct BetApiManager: BetDataManager {
let url = URL(string: allInApi + "bets/gets")! let url = URL(string: allInApi + "bets/gets")!
var request = URLRequest(url: url) var request = URLRequest(url: url)
request.httpMethod = "GET" request.httpMethod = "POST"
request.setValue("application/json", forHTTPHeaderField: "Content-Type") request.setValue("application/json", forHTTPHeaderField: "Content-Type")
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization") request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")

Loading…
Cancel
Save