refactor: api/ 주석 정리 및 소소한 개선

- client.js JSDoc 추가 (apiFetch, tryRefresh, apiUpload, localizeError)
- auth.js 단순 함수 JSDoc 제거, createLaunchTicket why 주석 유지
- chain.js BASE 중복 선언 이유 주석 추가, 단순 함수 JSDoc 제거
- announcements.js 후행 빈 줄 제거
- users.js getUsers 쿼리스트링 → URLSearchParams 변경

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-12 18:47:26 +09:00
parent 40ea1644b1
commit 90b75413f1
5 changed files with 48 additions and 10 deletions

View File

@@ -1,7 +1,8 @@
import { apiFetch } from './client';
export function getUsers(offset = 0, limit = 20) {
return apiFetch(`/api/users?offset=${offset}&limit=${limit}`);
const params = new URLSearchParams({ offset, limit });
return apiFetch(`/api/users?${params}`);
}
export function updateUserRole(id, role) {