Update : Git Ignore .env
Browse files- BackEnd/requirements.txt +0 -26
- BackEnd/run.py +1 -1
- BackEnd/vercel.json +13 -2
BackEnd/requirements.txt
CHANGED
|
@@ -5,18 +5,13 @@ opencv-python-headless==4.9.0.80
|
|
| 5 |
onnxruntime~=1.24.4
|
| 6 |
Werkzeug~=3.1.8
|
| 7 |
supabase~=2.28.3
|
| 8 |
-
dotenv~=0.9.9
|
| 9 |
python-dotenv~=1.2.2
|
| 10 |
hpack~=4.1.0
|
| 11 |
hyperframe~=6.1.0
|
| 12 |
h11~=0.16.0
|
| 13 |
cryptography~=46.0.7
|
| 14 |
-
pip~=25.0.1
|
| 15 |
typing_extensions~=4.15.0
|
| 16 |
cffi~=2.0.0
|
| 17 |
-
rich~=14.3.3
|
| 18 |
-
Pygments~=2.20.0
|
| 19 |
-
markdown-it-py~=4.0.0
|
| 20 |
idna~=3.11
|
| 21 |
multidict~=6.7.1
|
| 22 |
propcache~=0.4.1
|
|
@@ -26,46 +21,25 @@ click~=8.3.2
|
|
| 26 |
httpcore~=1.0.9
|
| 27 |
httpx~=0.28.1
|
| 28 |
zstandard~=0.25.0
|
| 29 |
-
mdurl~=0.1.2
|
| 30 |
charset-normalizer~=3.4.7
|
| 31 |
-
fsspec~=2026.3.0
|
| 32 |
requests~=2.33.1
|
| 33 |
yarl~=1.23.0
|
| 34 |
certifi~=2026.2.25
|
| 35 |
h2~=4.3.0
|
| 36 |
urllib3~=2.6.3
|
| 37 |
-
six~=1.17.0
|
| 38 |
python-dateutil~=2.9.0.post0
|
| 39 |
anyio~=4.13.0
|
| 40 |
annotated-types~=0.7.0
|
| 41 |
realtime~=2.28.3
|
| 42 |
websockets~=15.0.1
|
| 43 |
storage3~=2.28.3
|
| 44 |
-
pyiceberg~=0.11.1
|
| 45 |
deprecation~=2.1.0
|
| 46 |
postgrest~=2.28.3
|
| 47 |
tenacity~=9.1.4
|
| 48 |
-
pyroaring~=1.0.4
|
| 49 |
-
mmh3~=5.2.1
|
| 50 |
-
strictyaml~=1.7.3
|
| 51 |
pyparsing~=3.3.2
|
| 52 |
cachetools~=6.2.6
|
| 53 |
Jinja2~=3.1.6
|
| 54 |
packaging~=26.0
|
| 55 |
PyJWT~=2.12.1
|
| 56 |
-
typing_extensions~=4.15.0
|
| 57 |
protobuf~=7.34.1
|
| 58 |
-
pydantic_core~=2.41.5
|
| 59 |
-
Cython~=3.2.4
|
| 60 |
-
sympy~=1.14.0
|
| 61 |
-
mpmath~=1.3.0
|
| 62 |
-
pyglet~=2.1.14
|
| 63 |
-
decorator~=5.2.1
|
| 64 |
-
pillow~=12.2.0
|
| 65 |
flatbuffers~=25.12.19
|
| 66 |
-
scipy~=1.17.1
|
| 67 |
-
tqdm~=4.67.3
|
| 68 |
-
manim~=0.20.1
|
| 69 |
-
typing_extensions~=4.15.0
|
| 70 |
-
pydantic_core~=2.41.5
|
| 71 |
-
gTTS~=2.5.4
|
|
|
|
| 5 |
onnxruntime~=1.24.4
|
| 6 |
Werkzeug~=3.1.8
|
| 7 |
supabase~=2.28.3
|
|
|
|
| 8 |
python-dotenv~=1.2.2
|
| 9 |
hpack~=4.1.0
|
| 10 |
hyperframe~=6.1.0
|
| 11 |
h11~=0.16.0
|
| 12 |
cryptography~=46.0.7
|
|
|
|
| 13 |
typing_extensions~=4.15.0
|
| 14 |
cffi~=2.0.0
|
|
|
|
|
|
|
|
|
|
| 15 |
idna~=3.11
|
| 16 |
multidict~=6.7.1
|
| 17 |
propcache~=0.4.1
|
|
|
|
| 21 |
httpcore~=1.0.9
|
| 22 |
httpx~=0.28.1
|
| 23 |
zstandard~=0.25.0
|
|
|
|
| 24 |
charset-normalizer~=3.4.7
|
|
|
|
| 25 |
requests~=2.33.1
|
| 26 |
yarl~=1.23.0
|
| 27 |
certifi~=2026.2.25
|
| 28 |
h2~=4.3.0
|
| 29 |
urllib3~=2.6.3
|
|
|
|
| 30 |
python-dateutil~=2.9.0.post0
|
| 31 |
anyio~=4.13.0
|
| 32 |
annotated-types~=0.7.0
|
| 33 |
realtime~=2.28.3
|
| 34 |
websockets~=15.0.1
|
| 35 |
storage3~=2.28.3
|
|
|
|
| 36 |
deprecation~=2.1.0
|
| 37 |
postgrest~=2.28.3
|
| 38 |
tenacity~=9.1.4
|
|
|
|
|
|
|
|
|
|
| 39 |
pyparsing~=3.3.2
|
| 40 |
cachetools~=6.2.6
|
| 41 |
Jinja2~=3.1.6
|
| 42 |
packaging~=26.0
|
| 43 |
PyJWT~=2.12.1
|
|
|
|
| 44 |
protobuf~=7.34.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
flatbuffers~=25.12.19
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BackEnd/run.py
CHANGED
|
@@ -11,7 +11,7 @@ from core.response_json import success_response
|
|
| 11 |
from middlewares.auth import token_required
|
| 12 |
|
| 13 |
app = Flask(__name__)
|
| 14 |
-
CORS(app)
|
| 15 |
|
| 16 |
# --- PUBLIC ROUTES ---
|
| 17 |
app.add_url_rule('/api/test-db', view_func=test_connection, methods=['GET'])
|
|
|
|
| 11 |
from middlewares.auth import token_required
|
| 12 |
|
| 13 |
app = Flask(__name__)
|
| 14 |
+
CORS(app, resources={r"/api/*": {"origins": "*"}}, supports_credentials=False)
|
| 15 |
|
| 16 |
# --- PUBLIC ROUTES ---
|
| 17 |
app.add_url_rule('/api/test-db', view_func=test_connection, methods=['GET'])
|
BackEnd/vercel.json
CHANGED
|
@@ -2,14 +2,25 @@
|
|
| 2 |
"version": 2,
|
| 3 |
"builds": [
|
| 4 |
{
|
| 5 |
-
"src": "
|
| 6 |
"use": "@vercel/python"
|
| 7 |
}
|
| 8 |
],
|
| 9 |
"routes": [
|
| 10 |
{
|
| 11 |
"src": "/(.*)",
|
| 12 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
}
|
| 14 |
]
|
| 15 |
}
|
|
|
|
| 2 |
"version": 2,
|
| 3 |
"builds": [
|
| 4 |
{
|
| 5 |
+
"src": "run.py",
|
| 6 |
"use": "@vercel/python"
|
| 7 |
}
|
| 8 |
],
|
| 9 |
"routes": [
|
| 10 |
{
|
| 11 |
"src": "/(.*)",
|
| 12 |
+
"methods": ["OPTIONS"],
|
| 13 |
+
"headers": {
|
| 14 |
+
"Access-Control-Allow-Origin": "*",
|
| 15 |
+
"Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, OPTIONS",
|
| 16 |
+
"Access-Control-Allow-Headers": "Content-Type, Authorization",
|
| 17 |
+
"Access-Control-Max-Age": "86400"
|
| 18 |
+
},
|
| 19 |
+
"status": 200
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"src": "/(.*)",
|
| 23 |
+
"dest": "run.py"
|
| 24 |
}
|
| 25 |
]
|
| 26 |
}
|