perf(backend): allow get for some endpoints (#92)

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
This commit is contained in:
riku6460 2023-07-02 10:20:40 +09:00 committed by GitHub
parent b4f720cab6
commit 65a75ecd9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 3 deletions

View file

@ -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;
});
};