Spaces:
Running
Running
Update app/api/routes.py
Browse files- app/api/routes.py +13 -0
app/api/routes.py
CHANGED
|
@@ -7,6 +7,19 @@ from app.services import image_query
|
|
| 7 |
|
| 8 |
api_bp = Blueprint('api', __name__)
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
@api_bp.route('/form-data', methods=['GET'])
|
| 11 |
def get_form_data():
|
| 12 |
with open('form_data.json', 'r') as file:
|
|
|
|
| 7 |
|
| 8 |
api_bp = Blueprint('api', __name__)
|
| 9 |
|
| 10 |
+
@api_bp.route('/', methods=['GET'])
|
| 11 |
+
def health_check():
|
| 12 |
+
return jsonify({
|
| 13 |
+
"status": "healthy",
|
| 14 |
+
"message": "Recipe Rover API is running",
|
| 15 |
+
"endpoints": {
|
| 16 |
+
"form_data": "/api/form-data [GET]",
|
| 17 |
+
"recommend": "/api/recommend [POST]",
|
| 18 |
+
"extract_recipe": "/api/extract-recipe-attributes [POST]",
|
| 19 |
+
"analyze_image": "/api/analyze-food-image [POST]"
|
| 20 |
+
}
|
| 21 |
+
})
|
| 22 |
+
|
| 23 |
@api_bp.route('/form-data', methods=['GET'])
|
| 24 |
def get_form_data():
|
| 25 |
with open('form_data.json', 'r') as file:
|