walnut.js/app.js

14 lines
205 B
JavaScript

'use strict';
var express = require('express')
;
module.exports.create = function (server, host, port, publicDir) {
var app = express()
;
app.use(express.static(publicDir));
return app;
};