Skip to content

Commit

Permalink
fix: category(api)>URLの設定を間違えていた
Browse files Browse the repository at this point in the history
  • Loading branch information
watasuke102 committed Jan 16, 2024
1 parent b40c01b commit a8c89ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/api/category.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function fetch_category_data(id: number | string): Promise<CategoryDataTy
}
// 特定のタグが付けられているすべてのカテゴリ
export function fetch_category_with_spec_tag_data(tag_id: number | string): Promise<CategoryDataType> {
return fetcher(`${env.API_URL}{tag_key}/${tag_id}/all_category`);
return fetcher(`${env.API_URL}${tag_key}/${tag_id}/all_category`);
}

export async function new_category(data: NewCategory): AxiosPromise {
Expand Down

0 comments on commit a8c89ca

Please sign in to comment.