본인 티어표 복사 복구와 팔로우 피드 추가
This commit is contained in:
@@ -155,6 +155,13 @@ export const api = {
|
||||
listMyTierLists: () => request('/api/tierlists/me'),
|
||||
listMyFavoriteTierLists: ({ q = '', sort = 'favorited' } = {}) =>
|
||||
request(`/api/tierlists/favorites/me?q=${encodeURIComponent(q)}&sort=${encodeURIComponent(sort)}`),
|
||||
getUserProfile: (userId) => request(`/api/users/${encodeURIComponent(userId)}`),
|
||||
listUserPublicTierLists: (userId, { q = '' } = {}) =>
|
||||
request(`/api/users/${encodeURIComponent(userId)}/tierlists?q=${encodeURIComponent(q || '')}`),
|
||||
listFollowingFeed: ({ q = '' } = {}) =>
|
||||
request(`/api/users/following-feed?q=${encodeURIComponent(q || '')}`),
|
||||
followUser: (userId) => request(`/api/users/${encodeURIComponent(userId)}/follow`, { method: 'POST', body: {} }),
|
||||
unfollowUser: (userId) => request(`/api/users/${encodeURIComponent(userId)}/follow`, { method: 'DELETE' }),
|
||||
getTierList: (id) => request(`/api/tierlists/${encodeURIComponent(id)}`),
|
||||
favoriteTierList: (id) => request(`/api/tierlists/${encodeURIComponent(id)}/favorite`, { method: 'POST' }),
|
||||
unfavoriteTierList: (id) => request(`/api/tierlists/${encodeURIComponent(id)}/favorite`, { method: 'DELETE' }),
|
||||
|
||||
Reference in New Issue
Block a user