UNPKG
punchcard-cms
Version:
latest (2.42.23)
2.42.23
2.42.22
2.42.21
2.42.20
2.42.19
2.42.18
2.42.17
2.42.16
2.42.15
2.42.14
2.42.13
2.42.12
2.42.11
2.42.10
2.42.9
2.42.8
2.42.7
2.42.6
2.42.5
2.42.4
2.42.3
2.42.2
2.42.1
2.42.0
2.41.0
2.40.0
2.39.1
2.39.0
2.38.3
2.38.2
2.38.1
2.38.0
2.37.0
2.36.3
2.36.2
2.36.1
2.36.0
2.35.0
2.34.0
2.33.0
2.32.0
2.31.0
2.30.2
2.30.1
2.30.0
2.29.0
2.28.0
2.27.0
2.26.0
2.25.0
2.24.1
2.24.0
2.23.6
2.23.5
2.23.4
2.23.3
2.23.2
2.23.1
2.23.0
2.22.5
2.22.4
2.22.3
2.22.2
2.22.1
2.22.0
2.21.0
2.20.0
2.19.1
2.19.0
2.18.2
2.18.1
2.18.0
2.17.0
2.16.0
2.15.1
2.15.0
2.14.1
2.14.0
2.13.0
2.12.9
2.12.8
2.12.7
2.12.6
2.12.5
2.12.4
2.12.3
2.12.2
2.12.1
2.12.0
2.11.1
2.11.0
2.10.0
2.9.0
2.8.0
2.7.2-0
2.7.1
2.7.0
2.6.0
2.5.1
2.5.0
2.4.0
2.3.1-0
2.3.0
2.2.0
2.1.1
2.1.0
2.0.0
1.5.3
1.5.2
1.5.1
1.5.0
1.4.1
1.4.0
1.3.0
1.2.0
1.1.0
1.0.0
0.16.1
0.16.0
0.15.0
0.14.2
0.14.1
0.14.0
0.13.1
0.13.0
0.12.0
0.11.0
0.10.4
0.10.3
0.10.2
0.10.1
0.10.0
0.9.0
0.8.3
0.8.2
0.8.1
0.8.0
0.7.0
0.6.0
0.5.0
0.4.0
0.3.0
0.2.1
0.2.0
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.1.0-alpha.5
0.1.0-alpha.4
0.1.0-alpha.3
0.1.0-alpha.2
0.1.0-alpha.1
Node-based content management system
github.com/punchcard-cms/punchcard
punchcard-cms/punchcard
punchcard-cms
/
lib
/
init
/
static.js
13 lines
(9 loc)
•
229 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
'use strict'
;
const
express =
require
(
'express'
);
const
path =
require
(
'path'
);
module
.
exports
=
(
app
) =>
{
return
new
Promise
(
res
=>
{ app.
use
(express.
static
(path.
join
(process.
cwd
(),
'public'
)));
res
(app); }); };