Example #1
0
def add():
    req = request.get_json()
    category = req['category']
    url = req['url']
    print(category, url)
    save(category, url)
    return {'Status':'Ok'}
Example #2
0
def add():
    req = request.get_json()
    category = req['category']
    url = req['url']
    save(category, url)
    return {
        'status': 'ok'
    }
Example #3
0
def add_command(category: str, url: str):
    print('Dodaje nowy adres url')
    save(category, url)
Example #4
0
def add(category: str, url: str):
    print('I added new URL')
    save(category, url)