Implement event pruning

This commit is contained in:
cuigh
2022-01-04 16:44:03 +08:00
parent e70d907c06
commit d0eb101aee
9 changed files with 62 additions and 8 deletions

View File

@@ -28,6 +28,10 @@ export class EventApi {
search(args: SearchArgs) {
return ajax.get<SearchResult>('/event/search', args)
}
prune(days: number) {
return ajax.post<Result<Object>>('/event/prune', { days })
}
}
export default new EventApi