UNPKG
hapi.app.server
Version:
latest (0.1.6)
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.14
0.0.13
0.0.12
0.0.11
0.0.10
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.1
A small server to serve up HAPI applications
hapi.app.server
/
src
/
modules
/
indexMW.coffee
10 lines
(7 loc)
•
240 B
text/coffeescript
View Raw
1
2
3
4
5
6
7
8
9
10
class
IndexMW
configure
: (
{app: app, callback: callback}) -> app.set
"views"
,
"public"
app.get
"/"
, (req, res) => res.render
"index.ejs"
, req.indexVars callback?() module.exports = IndexMW