Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ import jwt
|
|
| 13 |
app = Flask(__name__)
|
| 14 |
app.config['SECRET_KEY'] = os.environ.get("FLASK_KEY")
|
| 15 |
redis_url = os.environ.get("REDIS_URL");
|
| 16 |
-
io = SocketIO(app, cors_allowerd_origins=[
|
| 17 |
"https://arcader7171-interstate.hf.space"
|
| 18 |
])
|
| 19 |
url: str = os.environ.get("SUPABASE_URL")
|
|
@@ -98,7 +98,7 @@ async def signupAPI():
|
|
| 98 |
.insert(dbData)
|
| 99 |
.execute()
|
| 100 |
)
|
| 101 |
-
response = dbResponse
|
| 102 |
return make_response(response), 200
|
| 103 |
|
| 104 |
@app.post("/api/messages")
|
|
|
|
| 13 |
app = Flask(__name__)
|
| 14 |
app.config['SECRET_KEY'] = os.environ.get("FLASK_KEY")
|
| 15 |
redis_url = os.environ.get("REDIS_URL");
|
| 16 |
+
io = SocketIO(app, logger=True, engineio_logger=True, cors_allowerd_origins=[
|
| 17 |
"https://arcader7171-interstate.hf.space"
|
| 18 |
])
|
| 19 |
url: str = os.environ.get("SUPABASE_URL")
|
|
|
|
| 98 |
.insert(dbData)
|
| 99 |
.execute()
|
| 100 |
)
|
| 101 |
+
response = dbResponse.data[0]
|
| 102 |
return make_response(response), 200
|
| 103 |
|
| 104 |
@app.post("/api/messages")
|