Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func checkDeviceRegistry() -> Bool {
- var found: Bool = false
- Alamofire.request("http://10.51.200.249:3000/api/devices").responseJSON {
- response in
- if let json = response.value as? [String: Any] {
- print(json)
- found = true
- return
- }
- print("\(String(describing: response.response))")
- }
- return found
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement