Deploy / deploy (push) Canceled after 0s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
9 lines
232 B
TypeScript
9 lines
232 B
TypeScript
import api from 'utils/api'
|
|
import type { AchievementList } from 'utils/types'
|
|
|
|
export function getAchievements(name?: string) {
|
|
return api.get<AchievementList>('achievements', {
|
|
params: name ? { username: name } : {},
|
|
})
|
|
}
|