Skip to content

Instantly share code, notes, and snippets.

View marcosbondel's full-sized avatar
:octocat:
Building a better future

Marcos Bonifasi de León marcosbondel

:octocat:
Building a better future
View GitHub Profile
@marcosbondel
marcosbondel / responder.py
Last active May 27, 2025 19:01
Métodos para respuestas JSON de una API en Flask (Python)
from flask import Response
import json
def respond_with_success(data = ''):
return Response(
response=json.dumps(data),
status=200,
mimetype='application/json'