git ssb

0+

gb / ssb-porthole



Tree: c337a0aad971d1e736b0998402712993c795ef91

Files: c337a0aad971d1e736b0998402712993c795ef91 / index.js

338 bytesRaw
1var koa = require('koa');
2var app = koa();
3var router = require('koa-router')();
4var avatar = require('ssb-avatar');
5var views = require('co-views');
6
7app.use(router.routes())
8
9var render = views(__dirname, { ext: 'jade'});
10
11router.get('/', function *(next) {
12 this.body = yield render('index', {title:'Porthole'})
13})
14
15app.listen(3000);
16

Built with git-ssb-web