diff options
Diffstat (limited to 'app.py')
| -rw-r--r-- | app.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -15,6 +15,10 @@ AUTH_TOKEN = os.environ.get('AUTH_TOKEN', 'myuploadtoken') def is_valid_filename(filename): return bool(re.match(VALID_FILENAME_REGEX, filename)) +@app.route('/health', methods=['GET']) +def health_check(): + return 'OK' + @app.route('/upload', methods=['POST']) def upload_file(): if 'file' not in request.files: |