Cambios acerca de implementacion de token y usabilidad de datos
This commit is contained in:
@@ -11,7 +11,7 @@ router = APIRouter(prefix="/comercial", tags=["Comercial"])
|
||||
def create_project(data: dict, token_data: dict = Depends(TokenDoliManager.verify_header)):
|
||||
try:
|
||||
service = ComercialService()
|
||||
result = service.create_project_commercial(data)
|
||||
result = service.create_project_commercial(data, token_data)
|
||||
return ApiResponse.success(result, "Proyecto creado", HttpStatus.CREATED)
|
||||
except Exception as e:
|
||||
return ApiResponse.error(str(e), HttpStatus.NOT_FOUND)
|
||||
Reference in New Issue
Block a user