Atualli commited on
Commit
e964357
·
1 Parent(s): 1471cb0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -2
app.py CHANGED
@@ -61,14 +61,32 @@ def autentica():
61
  email = request.args.get('email')
62
  passw = request.args.get('passw')
63
  newurl = 'http://painel.atualli.com/autentica?email='+email+'&passw='+passw
64
- print(newurl)
65
  res = requests.get(newurl)
66
 
67
  response = Response(res.content, res.status_code, res.headers)
68
  return response
69
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
 
71
-
72
  if __name__ == '__main__':
73
  mode = os.environ.get('FLASK_ENV', 'production')
74
  print(mode)
 
61
  email = request.args.get('email')
62
  passw = request.args.get('passw')
63
  newurl = 'http://painel.atualli.com/autentica?email='+email+'&passw='+passw
 
64
  res = requests.get(newurl)
65
 
66
  response = Response(res.content, res.status_code, res.headers)
67
  return response
68
 
69
+ @ app.route('/getdatamosaico', methods=['GET'])
70
+ def getdatamosaico():
71
+ cliente = request.args.get('cliente')
72
+ passw = request.args.get('passw')
73
+ newurl = 'http://painel.atualli.com/getdatamosaico?cliente='+cliente
74
+ res = requests.get(newurl)
75
+
76
+ response = Response(res.content, res.status_code, res.headers)
77
+ return response
78
+
79
+ @ app.route('/getdatalocal', methods=['GET'])
80
+ def getdatalocal():
81
+ comando = request.args.get('comando')
82
+ login = request.args.get('login')
83
+ newurl = 'http://painel.atualli.com/getdatalocal?comando='+comando+"&login="+login
84
+ res = requests.get(newurl)
85
+
86
+ response = Response(res.content, res.status_code, res.headers)
87
+ return response
88
+
89
 
 
90
  if __name__ == '__main__':
91
  mode = os.environ.get('FLASK_ENV', 'production')
92
  print(mode)