Fortsatta försök att få med api_endpoint genom Flask till frontend.js där den behövs

This commit is contained in:
Joakim Persson
2024-07-25 22:55:21 +02:00
parent ccc8e73f48
commit 20fa94f533
3 changed files with 111 additions and 20 deletions
+2 -2
View File
@@ -33,8 +33,8 @@ def index():
logger.debug("API endpoint: %s", api_endpoint)
with open('smartassist/src/html/client.html', 'r') as f:
client_html = f.read()
# logger.debug("Client HTML (first few characters): %s", client_html[:50]) # Print to see if it's loading
logger.debug("Client HTML (first few characters): %s", client_html) # Print to see if it's loading
logger.debug("Client HTML (first few characters): %s", client_html[:50]) # Print to see if it's loading
# logger.debug("Client HTML (all characters): %s", client_html) # Print to see if it's loading
return render_template('index.html', api_endpoint=api_endpoint, client_content=client_html)