One more time refactoring arch and rewrite dockerfile add endpoints for posts

This commit is contained in:
d3m0k1d
2025-11-21 23:07:55 +03:00
parent b281553e42
commit 2aa2c0a3fa
11 changed files with 40 additions and 3 deletions

View File

@@ -1,8 +1,12 @@
import fastapi
import uvicorn
#Import routes
from app.api.v1.posts import router as post_router
app = fastapi.FastAPI()
#Include routes
app.include_router(post_router)
if __name__ == "__main__":
uvicorn.run(app, host="0.0.0.0", port=8000)