git ssb

0+

cel-desktop / ssb-pkg



Tree: e1a1630f31c55420ca08a2a8e36296e3c202f1b1

Files: e1a1630f31c55420ca08a2a8e36296e3c202f1b1 / examples / express / index.js

459 bytesRaw
1'use strict';
2
3var express = require('express');
4var app = express();
5var Server = require('http').Server;
6var server = new Server(app);
7
8server.listen(8080);
9
10// __dirname is used here along with package.json.pkg.assets
11// see https://github.com/zeit/pkg#config and
12// https://github.com/zeit/pkg#snapshot-filesystem
13app.use('/', express.static(__dirname + '/views'));
14
15app.get('/', function (req, res) {
16 res.sendFile(__dirname + '/views/index.html');
17});
18

Built with git-ssb-web