mirror of
https://github.com/cuigh/swirl
synced 2025-06-26 18:16:50 +00:00
Implement event pruning
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user