diff options
| author | Michael Grote | 2023-04-14 12:17:08 +0200 |
|---|---|---|
| committer | Michael Grote | 2023-04-14 12:17:08 +0200 |
| commit | b91cf9fc508a6358ff47a49c11d3cce36bda5432 (patch) | |
| tree | 128d4e17736992f3d4d00da74936ba0f86b049d1 /app.py | |
| parent | 2caf356288366a8003dd8e4ba4c2339a9a370653 (diff) | |
add healthcheck
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: |