16 lines
482 B
Python
16 lines
482 B
Python
from fastapi import APIRouter, Depends, HTTPException, status
|
|
from sqlalchemy.orm import Session
|
|
from typing import List
|
|
from core.database import get_db
|
|
from models.chy import Chy
|
|
from schemas.chy import ChySchema
|
|
from helpers.chy_helpers import get_chy_message
|
|
|
|
router = APIRouter()
|
|
|
|
@router.get("/chy", status_code=200, response_model=ChySchema)
|
|
async def get_chy_message(
|
|
db: Session = Depends(get_db)
|
|
):
|
|
message = get_chy_message(db)
|
|
return {"message": "yoloo max"} |