chore(query.php): rename proxy endpoint to query to better reflect how it's used
This commit is contained in:
parent
92a3730e61
commit
aa33cd72df
4 changed files with 42 additions and 34 deletions
|
@ -18,7 +18,7 @@ window.addEventListener("load", () => {
|
|||
if (isDynamic && !isLoaded) {
|
||||
const markdownFields = dialog.dataset.markdown || "";
|
||||
try {
|
||||
const res = await fetch(`/api/proxy.php?data=${isDynamic}&id=${dialogId}&markdown=${encodeURIComponent(markdownFields)}`);
|
||||
const res = await fetch(`/api/query.php?data=${isDynamic}&id=${dialogId}&markdown=${encodeURIComponent(markdownFields)}`);
|
||||
const [data] = await res.json();
|
||||
const firstField = markdownFields.split(",")[0]?.trim();
|
||||
const html = data?.[`${firstField}_html`] || "<p>No notes available.</p>";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue