cleanup
This commit is contained in:
parent
0e56ca16bb
commit
f619644d59
@ -57,13 +57,4 @@ def remove_extra_url():
|
|||||||
|
|
||||||
extra_urls_list.remove(extra_url)
|
extra_urls_list.remove(extra_url)
|
||||||
write_extra_urls_list(extra_urls_list)
|
write_extra_urls_list(extra_urls_list)
|
||||||
return jsonify({'message': 'Extra URL removed successfully.'}), 200
|
return jsonify({'message': 'Extra URL removed successfully.'}), 200
|
||||||
|
|
||||||
@extra_urls_bp.route('/extra_urls_file', methods=['GET'])
|
|
||||||
def get_extra_urls_file():
|
|
||||||
"""Gets the content of the extra_urls.txt file."""
|
|
||||||
if not os.path.exists(EXTRA_URLS_FILE):
|
|
||||||
return "File not found", 404
|
|
||||||
with open(EXTRA_URLS_FILE, 'r') as f:
|
|
||||||
content = f.read()
|
|
||||||
return Response(content, mimetype='text/plain')
|
|
Loading…
x
Reference in New Issue
Block a user