Further refactor, still need to cleanup db.py

This commit is contained in:
Peter Stockings
2025-07-21 23:25:25 +10:00
parent 2ec44252bb
commit f55f50d0dc
11 changed files with 130 additions and 389 deletions

View File

@@ -10,8 +10,8 @@ show_client=True,
show_history=True,
edit_url=edit_url,
cancel_url=cancel_url,
logs_url=url_for('http.get_http_function_logs', function_id=function_id),
history_url=url_for('http.get_http_function_history', function_id=function_id)) }}
logs_url=url_for('http.logs', function_id=function_id),
history_url=url_for('http.history', function_id=function_id)) }}
<div id="app" class="p-1">
@@ -33,8 +33,9 @@ history_url=url_for('http.get_http_function_history', function_id=function_id))
logResponse: {{ log_response | tojson }},
versionNumber: {{ version_number }},
executeUrl: "{{ url_for('execute_code', playground='true') }}",
saveUrl: "{{ url_for('http.api_update_http_function', function_id=id) if id else url_for('http.api_create_http_function') }}",
deleteUrl: "{{ url_for('http.api_delete_http_function', function_id=id) if id else '' }}",
saveUrl: "{{ url_for('http.edit', function_id=id) if id else url_for('http.new') }}",
deleteUrl: "{{ url_for('http.delete', function_id=id) if id else '' }}",
cancelUrl: "{{ url_for('http.overview') }}",
showDeleteButton: true
})
})