35 Star 162 Fork 51

中传思客 / xgplayer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
app.js 415 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhangxin92 提交于 2020-09-20 21:08 . fix(all): resolve conflicts
const Koa = require('koa');
const Serve = require('koa-static');
const Cors = require('@koa/cors');
const Range = require('koa-range');
const app = new Koa()
app.use(Range)
app.use(Cors({
origin: '*',
allowHeaders: ['range'],
allowMethods: ['GET','HEAD','POST','OPTIONS'],
}))
app.use(Serve('.'))
app.listen(9090)
console.log(`server is ready,please visit http://localhost:9090/examples/index.html`)
JavaScript
1
https://gitee.com/cucygh/xgplayer.git
git@gitee.com:cucygh/xgplayer.git
cucygh
xgplayer
xgplayer
master

搜索帮助