perf(backend): allow get for some endpoints
This commit is contained in:
@@ -40,7 +40,7 @@ const { widgetProps, configure } = useWidgetPropsManager(name,
|
||||
const onlineUsersCount = ref(0);
|
||||
|
||||
const tick = () => {
|
||||
os.api('get-online-users-count').then(res => {
|
||||
os.apiGet('get-online-users-count').then(res => {
|
||||
onlineUsersCount.value = res.count;
|
||||
});
|
||||
};
|
||||
|
@@ -53,7 +53,7 @@ const stats = ref([]);
|
||||
const fetching = ref(true);
|
||||
|
||||
const fetch = () => {
|
||||
os.api('hashtags/trend').then(res => {
|
||||
os.apiGet('hashtags/trend').then(res => {
|
||||
stats.value = res;
|
||||
fetching.value = false;
|
||||
});
|
||||
|
Reference in New Issue
Block a user