Enable recipe proxy tunnel and slash routes
This commit is contained in:
@@ -8,7 +8,7 @@ from flask import Flask, jsonify, request
|
||||
app = Flask(__name__)
|
||||
MAX_IMAGE_BYTES = 10 * 1024 * 1024
|
||||
ALLOWED_TYPES = {"image/jpeg", "image/png", "image/webp"}
|
||||
PROXY_URL = "http://95.179.252.111:8768/gemini"
|
||||
PROXY_URL = "http://127.0.0.1:8768/gemini"
|
||||
|
||||
|
||||
def settings() -> dict:
|
||||
@@ -33,6 +33,7 @@ def health():
|
||||
|
||||
|
||||
@app.post("/recipe")
|
||||
@app.post("/recipe/")
|
||||
def recipe():
|
||||
if not authorized():
|
||||
return jsonify(error="unauthorized"), 401
|
||||
|
||||
Reference in New Issue
Block a user