Added: GitHub picbed support

This commit is contained in:
Molunerfinn
2018-04-06 22:01:30 +08:00
parent 975927ac68
commit eecf98e452
11 changed files with 217 additions and 5 deletions

View File

@@ -2,6 +2,7 @@ import weiboUpload from './weiboUpload'
import qiniuUpload from './qiniuUpload'
import tcYunUpload from './tcYunUpload'
import upYunUpload from './upYunUpload'
import githubUpload from './githubUpload'
import db from '../../datastore/index'
const checkUploader = (type) => {
@@ -25,6 +26,8 @@ const uploader = (img, type, webContents) => {
return tcYunUpload(img, type, webContents)
case 'upyun':
return upYunUpload(img, type, webContents)
case 'github':
return githubUpload(img, type, webContents)
}
} else {
return false