perf(backend): allow get for some endpoints
This commit is contained in:
parent
1b1f82a2e2
commit
a1327fa9e1
5 changed files with 7 additions and 3 deletions
|
@ -73,7 +73,7 @@ let fetching = $ref(true);
|
|||
onMounted(async () => {
|
||||
const [_stats, _onlineUsersCount] = await Promise.all([
|
||||
os.api('stats', {}),
|
||||
os.api('get-online-users-count').then(res => res.count),
|
||||
os.apiGet('get-online-users-count').then(res => res.count),
|
||||
]);
|
||||
stats = _stats;
|
||||
onlineUsersCount = _onlineUsersCount;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue