12 lines
389 B
Python
12 lines
389 B
Python
from fastapi import APIRouter, HTTPException
|
|
from .schema import CoveBaseSchema
|
|
from typing import List
|
|
from uuid import UUID
|
|
|
|
router = APIRouter()
|
|
# Aquí puedes definir tus endpoints relacionados con COVES usando el esquema CoveBaseSchema
|
|
|
|
@router.post("/cove/", response_model=CoveBaseSchema)
|
|
async def create_cove(cove: CoveBaseSchema):
|
|
# Lógica para crear un COVE
|
|
return cove |