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

UI done for video archiving

This commit is contained in:
2018-08-23 00:07:08 -05:00
parent 5a542e0ffb
commit 94bac26903
30 changed files with 393 additions and 68 deletions

View File

@@ -0,0 +1,14 @@
import * as _ from 'lodash';
import { IVideoArchive } from '../model';
import { axios } from './axios.service';
export class ArchiveService {
public static async getVideoArchive(): Promise<IVideoArchive[]> {
const data = (await axios.get('/api/video-archive')).data.data;
return _.orderBy(data, 'created_at', ['desc']);
}
public static postVideoArchive(data: any): Promise<any> {
return axios.post('/api/video-archive', data);
}
}