Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
from fastapi import FastAPI
|
|
|
2 |
import uvicorn
|
3 |
from log import log
|
4 |
|
@@ -8,9 +9,11 @@ from project_controller import router as project_router
|
|
8 |
from spark_controller import router as spark_router
|
9 |
from test_controller import router as test_router
|
10 |
|
11 |
-
# Sağlık kontrolü
|
12 |
app = FastAPI()
|
13 |
|
|
|
|
|
|
|
14 |
@app.get("/")
|
15 |
def health_check():
|
16 |
return {"status": "ok"}
|
|
|
1 |
from fastapi import FastAPI
|
2 |
+
from fastapi.staticfiles import StaticFiles
|
3 |
import uvicorn
|
4 |
from log import log
|
5 |
|
|
|
9 |
from spark_controller import router as spark_router
|
10 |
from test_controller import router as test_router
|
11 |
|
|
|
12 |
app = FastAPI()
|
13 |
|
14 |
+
# 📦 Static HTML + Bootstrap UI entegrasyonu
|
15 |
+
app.mount("/static", StaticFiles(directory="static"), name="static")
|
16 |
+
|
17 |
@app.get("/")
|
18 |
def health_check():
|
19 |
return {"status": "ok"}
|