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