diff --git a/src/api/setRole.ts b/src/api/setRole.ts index 7dd8331ae96ace4dd206790cd7cea7e6506147bc..ac08f6f5bbbfa6ab9963b23f09b07ad7c05a0965 100644 --- a/src/api/setRole.ts +++ b/src/api/setRole.ts @@ -1,8 +1,7 @@ import axios from 'axios'; /** - * Ask the server all the roles of an user (if the user has multiple roles). - * @returns array of roles. + * Set the role of the user in the database. */ export const setRole = async (role: string): Promise<void> => axios.post('/api/web/login/set_role', { role });