feat: Convert all app files to JS
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
const getCurrentUser = async ($) => {
|
||||
const userId = $.auth.data.owner.user.id;
|
||||
const response = await $.http.get(`/v1/users/${userId}`);
|
||||
|
||||
const currentUser = response.data;
|
||||
return currentUser;
|
||||
};
|
||||
|
||||
export default getCurrentUser;
|
Reference in New Issue
Block a user