From c410e7d79e6b2527c7a67a969dc0676cd1741af1 Mon Sep 17 00:00:00 2001 From: Arc <33088785+arcbtc@users.noreply.github.com> Date: Wed, 19 Feb 2020 23:42:04 +0000 Subject: [PATCH] Update views_api.py --- lnbits/extensions/example/views_api.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lnbits/extensions/example/views_api.py b/lnbits/extensions/example/views_api.py index 7046d9f..2eb091c 100644 --- a/lnbits/extensions/example/views_api.py +++ b/lnbits/extensions/example/views_api.py @@ -2,6 +2,8 @@ #add your dependencies here +import json +import requests from flask import jsonify, render_template, request, redirect, url_for from lnbits.db import open_db, open_ext_db from lnbits.extensions.example import example_ext @@ -13,5 +15,4 @@ def api_example(): """Try to add descriptions for others.""" #YOUR-CODE - return jsonify({"status": "TRUE"), 200 - + return jsonify({"status": "TRUE"}), 200