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

@@ -0,0 +1,33 @@
from fastapi import APIRouter
router = APIRouter(
prefix="/posts",
tags=["posts"],
responses={404: {"description": "Not found"}},
)
@router.get("/")
async def get_posts():
pass
@router.get("/{id}")
async def get_post(id: int):
pass
@router.post("/")
async def create_post():
pass
@router.put("/{id}")
async def update_post(id: int):
pass
@router.delete("/{id}")
async def delete_post(id: int):
pass