1
0
mirror of https://github.com/mgerb/go-discord-bot synced 2026-01-11 01:22:48 +00:00

feat: add user admin page - various dependency updates

This commit is contained in:
mg
2022-02-16 23:27:13 -06:00
parent 3484a32284
commit 6b8db59e98
29 changed files with 17038 additions and 841 deletions

View File

@@ -0,0 +1,14 @@
import { IUser } from '../model';
import { axios } from './axios.service';
export class UserService {
public static async getUsers(): Promise<IUser[]> {
const resp = await axios.get('/api/user');
return resp.data.data;
}
public static async putUsers(users: IUser[]): Promise<IUser[]> {
const resp = await axios.put('/api/user', { users });
return resp.data.data;
}
}