Skip to content
Snippets Groups Projects

Add actions to moderation menu

6 files
+ 37
58
Compare changes
  • Side-by-side
  • Inline
Files
6
+ 3
2
@@ -26,10 +26,11 @@ export async function loginByUsername(username, password) {
})
}
export function getUserInfo() {
export function getUserInfo(token) {
return request({
url: '/api/account/verify_credentials',
method: 'post'
method: 'post',
headers: token ? { 'Authorization': `Bearer ${token}` } : {}
})
}
Loading