Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,10 +9,10 @@ app = Flask(__name__)
|
|
| 9 |
# api_key = request.headers.get("x-api-key")
|
| 10 |
# if api_key != API_KEY:
|
| 11 |
# abort(403) # Forbidden if API key is missing or incorrect
|
| 12 |
-
@app.route('/',
|
| 13 |
def thismain():
|
| 14 |
print('ayhaga')
|
| 15 |
-
@app.route('/process',
|
| 16 |
def process():
|
| 17 |
# check_api_key()
|
| 18 |
try:
|
|
|
|
| 9 |
# api_key = request.headers.get("x-api-key")
|
| 10 |
# if api_key != API_KEY:
|
| 11 |
# abort(403) # Forbidden if API key is missing or incorrect
|
| 12 |
+
@app.route('/', method='GET')
|
| 13 |
def thismain():
|
| 14 |
print('ayhaga')
|
| 15 |
+
@app.route('/process', method='POST')
|
| 16 |
def process():
|
| 17 |
# check_api_key()
|
| 18 |
try:
|