Don't always use 'mailer' for all resource lists
This commit is contained in:
parent
0256b9bb42
commit
eacb8c567c
1 changed files with 3 additions and 0 deletions
|
|
@ -57,11 +57,14 @@ function createResourceStore<dto, full extends uriHaver>(
|
|||
return cur;
|
||||
}
|
||||
async function fetchAll(): Promise<full[]> {
|
||||
/*
|
||||
const sessionStore = useSessionStore();
|
||||
const session = await sessionStore.get();
|
||||
const params = new URLSearchParams();
|
||||
params.append("sort", "-created");
|
||||
const url = `${session.urls.api.mailer}?${params}`;
|
||||
*/
|
||||
const url = `/api/${api_base}`;
|
||||
const dtos = (await apiClient.JSONGet(url)) as dto[];
|
||||
const resources = dtos.map((m: dto) => from_json(m));
|
||||
resources.forEach((r: full) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue