Add getPermissions AJAX

pull/990/head
Andrew Watkins 2017-03-10 08:40:12 -08:00
parent 59b367bde6
commit 22886d5183
1 changed files with 12 additions and 1 deletions

View File

@ -18,7 +18,18 @@ export const getRoles = async (url) => {
url,
})
} catch (error) {
console.error(error) // eslint-disable-line no-console
console.error(error)
}
}
export const getPermissions = async (url) => {
try {
return await AJAX({
method: 'GET',
url,
})
} catch (error) {
console.error(error)
}
}