API - move health route

This commit is contained in:
Sam
2020-05-01 18:10:34 +02:00
parent d6615795ba
commit abca323936
96 changed files with 29 additions and 32169 deletions

View File

@ -140,3 +140,32 @@ def update_application_config(auth_user_id):
}
code = 500
return jsonify(response_object), code
@config_blueprint.route('/ping', methods=['GET'])
def ping_pong():
""" health check endpoint
**Example request**:
.. sourcecode:: http
GET /api/ping HTTP/1.1
Content-Type: application/json
**Example response**:
.. sourcecode:: http
HTTP/1.1 200 OK
Content-Type: application/json
{
"message": "pong!",
"status": "success"
}
:statuscode 200: success
"""
return jsonify({'status': 'success', 'message': 'pong!'})

View File

@ -422,32 +422,3 @@ def delete_activity(auth_user_id, user_name):
}
code = 500
return jsonify(response_object), code
@users_blueprint.route('/ping', methods=['GET'])
def ping_pong():
""" health check endpoint
**Example request**:
.. sourcecode:: http
GET /api/ping HTTP/1.1
Content-Type: application/json
**Example response**:
.. sourcecode:: http
HTTP/1.1 200 OK
Content-Type: application/json
{
"message": "pong!",
"status": "success"
}
:statuscode 200: success
"""
return jsonify({'status': 'success', 'message': 'pong!'})