Configuracion final de back con serve

This commit is contained in:
2026-03-17 16:22:20 -05:00
commit af07bbc36b
21 changed files with 574 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
from fastapi import APIRouter
from Back_comercial_iko.services.Comercial_service import ComercialService
from Back_comercial_iko.core.Response import ApiResponse
from Back_comercial_iko.core.HttpStatus import HttpStatus
router = APIRouter(prefix="/comercial", tags=["Comercial"])
@router.post("/create-project")
def create_project(data: dict):
try:
service = ComercialService()
result = service.create_project_commercial(data)
return ApiResponse.success(result,"Proyecto creado",HttpStatus.CREATED)
except Exception as e:
return ApiResponse.error(str(e),HttpStatus.NOT_FOUND)