2020-11-20 10:32:17 +01:00
|
|
|
import { collection, post } from '../helpers/request.ts';
|
2020-04-17 15:51:11 +02:00
|
|
|
|
2020-09-16 10:51:26 +02:00
|
|
|
const base = 'users/';
|
|
|
|
|
|
2020-04-17 15:51:11 +02:00
|
|
|
export default {
|
2020-11-20 10:32:17 +01:00
|
|
|
...collection(base),
|
2020-04-17 15:51:11 +02:00
|
|
|
|
2020-11-20 10:32:17 +01:00
|
|
|
updatePassword: async model => await post(base + 'updatePassword', model),
|
2020-04-17 15:51:11 +02:00
|
|
|
|
2020-11-20 10:32:17 +01:00
|
|
|
disable: async model => await post(base + 'disable', model),
|
2020-09-16 10:51:26 +02:00
|
|
|
|
2020-11-20 10:32:17 +01:00
|
|
|
enable: async model => await post(base + 'enable', model)
|
2020-04-17 15:51:11 +02:00
|
|
|
};
|