styling and create customer woo bug handled
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user