Spaces:
Paused
Paused
fix: add root route for HF Spaces health probe
Browse files
app.py
CHANGED
|
@@ -18,6 +18,10 @@ app.register_blueprint(upload_bp, url_prefix='/api')
|
|
| 18 |
app.register_blueprint(analyze_bp, url_prefix='/api')
|
| 19 |
app.register_blueprint(comment_bp, url_prefix='/api')
|
| 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
@app.route('/api/health')
|
| 22 |
def health():
|
| 23 |
return {'status': 'ok', 'service': 'CheckScan API'}
|
|
|
|
| 18 |
app.register_blueprint(analyze_bp, url_prefix='/api')
|
| 19 |
app.register_blueprint(comment_bp, url_prefix='/api')
|
| 20 |
|
| 21 |
+
@app.route('/')
|
| 22 |
+
def index():
|
| 23 |
+
return {'status': 'ok', 'service': 'CheckScan API', 'docs': '/api/health'}
|
| 24 |
+
|
| 25 |
@app.route('/api/health')
|
| 26 |
def health():
|
| 27 |
return {'status': 'ok', 'service': 'CheckScan API'}
|