git ssb

0+

cel-desktop / ssb-pkg



Tree: ca90b5ca0579ebdcc0635288bce4978e3fb200f5

Files: ca90b5ca0579ebdcc0635288bce4978e3fb200f5 / 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