styling and create customer woo bug handled

This commit is contained in:
Lucas Tettamanti
2026-01-05 10:58:54 -03:00
parent 4de68dc996
commit 829823ac3d
7 changed files with 141 additions and 26 deletions

View File

@@ -7,6 +7,13 @@ export const api = {
return fetch(u).then(r => r.json());
},
async messages({ chat_id, limit = 200 } = {}) {
const u = new URL("/messages", location.origin);
if (chat_id) u.searchParams.set("chat_id", chat_id);
u.searchParams.set("limit", String(limit));
return fetch(u).then(r => r.json());
},
async runs({ chat_id, limit = 1 } = {}) {
const u = new URL("/runs", location.origin);
if (chat_id) u.searchParams.set("chat_id", chat_id);