Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@app.route("/<username>", methods=["GET"])
def vcard(username):
vcard = create_vcard_from_username(username)
if not vcard:
return Response("Whoops. Sorry, br0.", status=500)
return Response(vcard, headers={"Content-Type":"text/vcard"})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment