Skip to content
This repository was archived by the owner on Jun 25, 2026. It is now read-only.

Commit 78fdbe1

Browse files
committed
feat(api): create minimal fastapi app
1 parent bc04f9d commit 78fdbe1

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

File renamed without changes.

api/main.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
def main():
2-
print("Hello from homepedia-api!")
1+
from fastapi import FastAPI
32

3+
app = FastAPI()
44

5-
if __name__ == "__main__":
6-
main()
5+
6+
@app.get("/")
7+
def read_root():
8+
return {"Hello": "World"}

0 commit comments

Comments
 (0)