(id: number)
| 14 | axios.get<IUser[]>(`${config.get('url')}user`).then((response) => response.data); |
| 15 | |
| 16 | protected requestDelete(id: number): Promise<void> { |
| 17 | return axios |
| 18 | .delete(`${config.get('url')}user/${id}`) |
| 19 | .then(() => this.snack('User deleted')); |
| 20 | } |
| 21 | |
| 22 | @action |
| 23 | public create = async (name: string, pass: string, admin: boolean) => { |
nothing calls this directly
no outgoing calls
no test coverage detected