Добавлен API Квартплаты

This commit is contained in:
Gitea
2022-04-28 12:38:12 +09:00
parent 70aaff37f1
commit af49bdf6ec
67 changed files with 2035 additions and 58 deletions

13
kv/routers/accrual.py Normal file
View File

@ -0,0 +1,13 @@
import kv.schemas as schemas
import kv.crud as crud
from sqlalchemy.orm import Session
from fastapi import APIRouter, Depends
from kv.database import get_db
router = APIRouter()
"""get"""
@router.get("/get_municipals")
def get_municipals(db: Session = Depends(get_db)):
return crud.AccrualViewSet.get_municipals(db)