looking for extra urls
This commit is contained in:
parent
64b54e959e
commit
b673a232b1
@ -33,6 +33,9 @@ ENV FLASK_APP=ktvmanager.main:create_app
|
||||
# Copy application code
|
||||
COPY . .
|
||||
|
||||
# Debugging step to verify file presence
|
||||
RUN ls -la /app/ktvmanager/lib
|
||||
|
||||
# Handle versioning
|
||||
ARG VERSION
|
||||
RUN if [ -n "$VERSION" ]; then echo $VERSION > VERSION; fi
|
||||
|
@ -58,3 +58,12 @@ def remove_extra_url():
|
||||
extra_urls_list.remove(extra_url)
|
||||
write_extra_urls_list(extra_urls_list)
|
||||
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