Skip to content

Commit

Permalink
Fixed: built-in UI endpoint (#374)
Browse files Browse the repository at this point in the history
  • Loading branch information
signebedi committed Nov 11, 2024
1 parent 6e8fff9 commit 25c79e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libreforms_fastapi/app/templates/create_form.html.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function generateLookup(formName, fieldName, displayFields, queryParams) {
function fetchData(formName) {
return new Promise((resolve, reject) => {
$.ajax({
url: `/api/form/read_all/${formName}?flatten=true&exclude_journal=true&stringify_output=true&sort_by=%__metadata__last_edited&newest_first=true&return_when_empty=true&${queryParams}`,
url: `/api/form/read_all/${formName}?flatten=true&exclude_journal=true&stringify_output=true&sort_by=%__metadata__last_edited&return_when_empty=true&${queryParams}`,
type: "GET",
dataType: 'json',
beforeSend: function(xhr){xhr.setRequestHeader('X-API-KEY', apiKey);},
Expand Down

0 comments on commit 25c79e7

Please sign in to comment.