Serve videos too
This commit is contained in:
parent
16841a8a5c
commit
0ecb26187f
4 changed files with 6 additions and 1 deletions
|
|
@ -2,6 +2,7 @@ const Koa = require('koa');
|
|||
const Router = require('koa-router');
|
||||
const Static = require('koa-static');
|
||||
const Cors = require('koa-cors');
|
||||
const Mount = require('koa-mount');
|
||||
const path = require('path');
|
||||
|
||||
const route35c3 = require('./route/35c3');
|
||||
|
|
@ -15,7 +16,8 @@ app
|
|||
.use(Cors())
|
||||
.use(router.routes())
|
||||
.use(router.allowedMethods())
|
||||
.use(Static(path.resolve(__dirname, '../dist'), {}));
|
||||
.use(Static(path.resolve(__dirname, '../dist'), {}))
|
||||
.use(Mount('/videos', Static(path.resolve(__dirname, '../videos'), {})));
|
||||
|
||||
module.exports = app;
|
||||
if (!module.parent) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue