This commit is contained in:
Timothy Jaeryang Baek
2026-07-17 04:11:11 -04:00
parent a213355785
commit 56f2cb5302
3 changed files with 31 additions and 2 deletions
+5 -1
View File
@@ -97,7 +97,9 @@ export const getSkillItems = async (
token: string = '',
query: string | null = null,
viewOption: string | null = null,
page: number | null = null
page: number | null = null,
orderBy: string | null = null,
direction: string | null = null
) => {
let error = null;
@@ -105,6 +107,8 @@ export const getSkillItems = async (
if (query) searchParams.append('query', query);
if (viewOption) searchParams.append('view_option', viewOption);
if (page) searchParams.append('page', page.toString());
if (orderBy) searchParams.append('order_by', orderBy);
if (direction) searchParams.append('direction', direction);
const res = await fetch(`${WEBUI_API_BASE_URL}/skills/list?${searchParams.toString()}`, {
method: 'GET',