<filename>app/requests.py
from .models import Quote
import requests
 
base_url = None


def configure_request(app):
    global base_url
    base_url = app.config['QUOTE_API_BASE_URL']


def get_quotes():
    '''
    
    Function that get the json response to our url request.
    '''


    get_quote_response =requests.get ('http://quotes.stormconsultancy.co.uk/random.json').json()

    print(get_quote_response)
    
    return get_quote_response
