We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c0ea33 commit 87481aaCopy full SHA for 87481aa
1 file changed
app/main.py
@@ -7,15 +7,14 @@
7
from app.database import Base, engine, get_db
8
from app.schemas import URLCreate, URLResponse, URLStats
9
10
-Base.metadata.create_all(bind=engine)
11
-
12
app = FastAPI(title="URL Shortener", version="1.0.0")
13
14
15
@app.on_event("startup")
16
def startup():
17
Base.metadata.create_all(bind=engine)
18
+
19
@app.get("/health")
20
def health_check():
21
return {"status": "ok"}
0 commit comments