mirror of
https://github.com/mgerb/go-discord-bot
synced 2026-01-11 17:42:48 +00:00
feat: add user event log to admin page
This commit is contained in:
9
client/app/services/user-event-log.service.ts
Normal file
9
client/app/services/user-event-log.service.ts
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user