Compare commits
2 Commits
bff021333f
...
7a3e025278
Author | SHA1 | Date | |
---|---|---|---|
7a3e025278 | |||
d369c16540 |
|
@ -1,3 +1,5 @@
|
|||
export default {
|
||||
apiUrl: 'https://858.ma/api'
|
||||
baseUrl: 'https://858.ma',
|
||||
videoBase: 'https://video22.858.ma',
|
||||
apiUrl: 'https://858.ma/api'
|
||||
};
|
9
src/utils/video.js
Normal file
9
src/utils/video.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
import config from '../config';
|
||||
|
||||
export function getThumbnail(id, size='256') {
|
||||
return `${config.baseUrl}/${id}/icon${size}.jpg`
|
||||
}
|
||||
|
||||
export function getVideo(id, size='480') {
|
||||
return `${config.videoBase}/${id}/${size}.mp4`;
|
||||
}
|
Loading…
Reference in New Issue
Block a user