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

feat: add user event log to admin page

This commit is contained in:
2019-08-24 12:47:53 -05:00
parent 72ba1e5621
commit 55a4bb73af
18 changed files with 230 additions and 26 deletions

View File

@@ -2,3 +2,4 @@ export * from './axios.service';
export * from './oauth.service';
export * from './sound.service';
export * from './storage.service';
export * from './user-event-log.service';

View File

@@ -0,0 +1,9 @@
import { IUserEventLog } from '../model';
import { axios } from './axios.service';
export class UserEventLogService {
public static async getUserEventLogs(): Promise<IUserEventLog[]> {
const resp = await axios.get('/api/user-event-log');
return resp.data.data;
}
}