Add support to switch between deno and nodejs function executor

This commit is contained in:
Peter Stockings
2025-07-28 15:48:18 +10:00
parent a4d8abcf5b
commit e115d06691
7 changed files with 90 additions and 46 deletions

View File

@@ -32,6 +32,7 @@ history_url=url_for('http.history', function_id=function_id)) }}
logRequest: {{ log_request | tojson }},
logResponse: {{ log_response | tojson }},
versionNumber: {{ version_number }},
runtime: '{{ runtime }}',
executeUrl: "{{ url_for('execute_code', playground='true') }}",
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 '' }}",

View File

@@ -30,6 +30,7 @@ history_url=url_for('timer.history', function_id=function_id)) }}
isEdit: true,
showHeader: true,
versionNumber: {{ timer_function.version_number }},
runtime: '{{ runtime }}',
isEnabled: {{ timer_function.enabled | tojson }},
executeUrl: "{{ url_for('execute_code', playground='true') }}",
saveUrl: "{{ url_for('timer.edit', function_id=function_id) }}",