Add files via upload
This commit is contained in:
parent
8e53f0038d
commit
f216cf05c5
27 changed files with 29565 additions and 0 deletions
0
api/app/healthcheck/__init__.py
Normal file
0
api/app/healthcheck/__init__.py
Normal file
12
api/app/healthcheck/blueprint.py
Normal file
12
api/app/healthcheck/blueprint.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
"""app.healthcheck.blueprint
|
||||
|
||||
Module that deals with Blueprint-related stuff."""
|
||||
from flask import Blueprint
|
||||
from app.healthcheck import healthcheck
|
||||
|
||||
|
||||
def create_blueprint():
|
||||
"""Creates a Blueprint"""
|
||||
blueprint = Blueprint('Health Check Blueprint', __name__)
|
||||
blueprint.route('/')(healthcheck.route)
|
||||
return blueprint
|
16
api/app/healthcheck/healthcheck.py
Normal file
16
api/app/healthcheck/healthcheck.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
"""app.healthcheck.healthcheck
|
||||
|
||||
Module that deals with HealthCheck route."""
|
||||
import logging
|
||||
|
||||
from flask import jsonify
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def route():
|
||||
"""Returns health information"""
|
||||
log.info("Healthcheck was requested")
|
||||
return jsonify({
|
||||
"message": "type shit"
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue