Skip to content

Commit

Permalink
Correções das rotas
Browse files Browse the repository at this point in the history
  • Loading branch information
pablomariz committed May 22, 2020
1 parent 959feac commit c83ef10
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions rotas.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def novo_veiculo():
if response['Message'] != 'OK':
raise Exception('Invalid Token')

response = jsonify(backend.novo_veiculo(data))
response = backend.novo_veiculo(data)

except Exception as e:
response = {
Expand All @@ -42,7 +42,7 @@ def novo_usuario():
raise Exception('Request out of params')


response = jsonify(backend.novo_usuario(data))
response = backend.novo_usuario(data)

except Exception as e:
response = {
Expand All @@ -67,7 +67,7 @@ def nova_limpeza():
if response['Message'] != 'OK':
raise Exception('Invalid Token')

response = jsonify(backend.nova_limpeza(data))
response = backend.nova_limpeza(data)

except Exception as e:
response = {
Expand All @@ -92,7 +92,7 @@ def nova_avaliacao():
if response['Message'] != 'OK':
raise Exception('Invalid Token')

response = jsonify(backend.nova_avaliacao(data))
response = backend.nova_avaliacao(data)


except Exception as e:
Expand All @@ -118,7 +118,7 @@ def recusa_notificacao():
if response['Message'] != 'OK':
raise Exception('Invalid Token')

response = jsonify(backend.recusa_notificacao(data))
response = backend.recusa_notificacao(data)

except Exception as e:
response = {
Expand All @@ -143,7 +143,7 @@ def grava_envio_notificao():
if response['Message'] != 'OK':
raise Exception('Invalid Token')

response = jsonify(backend.grava_envio_notificao(data))
response = backend.grava_envio_notificao(data)

except Exception as e:
response = {
Expand Down Expand Up @@ -214,7 +214,7 @@ def buscar_notificacoes():
if response['Message'] != 'OK':
raise Exception('Invalid Token')

response = jsonify(backend.buscar_notificacoes(data))
response = backend.buscar_notificacoes(data)

except Exception as e:
response = {
Expand All @@ -238,7 +238,7 @@ def buscar_limpezas_veiculo():
if response['Message'] != 'OK':
raise Exception('Invalid Token')

response = jsonify(backend.buscar_limpezas_veiculo(data))
response = backend.buscar_limpezas_veiculo(data)

except Exception as e:
response = {
Expand All @@ -263,7 +263,7 @@ def buscar_resumo_veiculo():
if response['Message'] != 'OK':
raise Exception('Invalid Token')

response = jsonify(backend.buscar_resumo_veiculo(data))
response = backend.buscar_resumo_veiculo(data)

except Exception as e:
response = {
Expand All @@ -288,7 +288,7 @@ def buscar_ultima_limpeza_veiculo():
if response['Message'] != 'OK':
raise Exception('Invalid Token')

response = jsonify(backend.buscar_ultima_limpeza_veiculo(data))
response = backend.buscar_ultima_limpeza_veiculo(data)

except Exception as e:
response = {
Expand All @@ -313,7 +313,7 @@ def buscar_limpeza():
if response['Message'] != 'OK':
raise Exception('Invalid Token')

response = jsonify(backend.buscar_limpeza(data))
response = backend.buscar_limpeza(data)

except Exception as e:
response = {
Expand All @@ -338,7 +338,7 @@ def realizar_logoff():
if response['Message'] != 'OK':
raise Exception('Invalid Token')

response = jsonify(backend.realizar_logoff(data))
response = backend.realizar_logoff(data)

except Exception as e:
response = {
Expand Down

0 comments on commit c83ef10

Please sign in to comment.