Skip to content

Commit

Permalink
feat: add global params support to getItemsByID
Browse files Browse the repository at this point in the history
  • Loading branch information
Intevel committed Apr 11, 2022
1 parent bad306b commit bbb161e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/runtime/composables/useDirectusItems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export const useDirectusItems = () => {
const getItemById = async <T>(data: DirectusItemRequest): Promise<T[]> => {
const items = await directus<{data: T[]}>(`/items/${data.collection}/${data.id}`, {
method: "GET",
params: data.params
});
return items.data;
};
Expand Down

0 comments on commit bbb161e

Please sign in to comment.