UNPKG
anchundan
Version:
latest (2.0.7)
2.0.7
2.0.6
2.0.4
2.0.2
2.0.1
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.8
1.0.7
1.0.6
1.0.5
1.0.2
1.0.1
鹌鹑蛋框架
github.com/shinku/anchundan
shinku/anchundan
anchundan
/
src
/
core
/
middleware
/
coremiddles
/
static.js
8 lines
•
260 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
const
static
=
require
(
'koa-static'
);
const
path =
require
(
'path'
);
module
.
exports
=
(
config
)=>
{
let
{root,option} = config; root = root || path.
resolve
( process.
getRoot
() ,
'./src/static'
); option = option || {};
return
static
(root,option); };