Explorar el Código

fix: function names

master
Rohan Verma hace 6 años
padre
commit
01e1a1286a
Se han modificado 1 ficheros con 5 adiciones y 5 borrados
  1. +5
    -5
      main.py

+ 5
- 5
main.py Ver fichero

} }


@app.route('/peejay', methods=['POST', 'GET']) @app.route('/peejay', methods=['POST', 'GET'])
def index():
def peejay():
"""Handles an event from Hangouts Chat.""" """Handles an event from Hangouts Chat."""
if request.method == 'GET': if request.method == 'GET':
return json.jsonify({'message': 'Hello there!'}) return json.jsonify({'message': 'Hello there!'})
return return


@app.route('/vss', methods=['POST', 'GET']) @app.route('/vss', methods=['POST', 'GET'])
def index():
def vss():
"""Handles an event from Hangouts Chat.""" """Handles an event from Hangouts Chat."""
if request.method == 'GET': if request.method == 'GET':
return json.jsonify({'message': 'Hello there!'}) return json.jsonify({'message': 'Hello there!'})
return return


@app.route('/kunal', methods=['POST', 'GET']) @app.route('/kunal', methods=['POST', 'GET'])
def index():
def kunal():
"""Handles an event from Hangouts Chat.""" """Handles an event from Hangouts Chat."""
if request.method == 'GET': if request.method == 'GET':
return json.jsonify({'message': 'Hello there!'}) return json.jsonify({'message': 'Hello there!'})
return return


@app.route('/nithin', methods=['POST', 'GET']) @app.route('/nithin', methods=['POST', 'GET'])
def index():
def nithin():
"""Handles an event from Hangouts Chat.""" """Handles an event from Hangouts Chat."""
if request.method == 'GET': if request.method == 'GET':
return json.jsonify({'message': 'Hello there!'}) return json.jsonify({'message': 'Hello there!'})
}) })
else: else:
return return
@app.errorhandler(500) @app.errorhandler(500)
def server_error(e): def server_error(e):
# Log the error and stacktrace. # Log the error and stacktrace.

Cargando…
Cancelar
Guardar