mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: update memo stats api (#387)
This commit is contained in:
@ -90,8 +90,8 @@ export function getMemoList(memoFind?: MemoFind) {
|
||||
return axios.get<ResponseObject<Memo[]>>(`/api/memo?${queryList.join("&")}`);
|
||||
}
|
||||
|
||||
export function getMemoStats() {
|
||||
return axios.get<ResponseObject<number[]>>(`/api/memo/stats`);
|
||||
export function getMemoStats(userId: UserId) {
|
||||
return axios.get<ResponseObject<number[]>>(`/api/memo/stats?userId=${userId}`);
|
||||
}
|
||||
|
||||
export function getMemoById(id: MemoId) {
|
||||
|
Reference in New Issue
Block a user