Files: 4b1462a0182a814136c0bdf3b47e5a45f12a63f6 / api.js
331 bytesRaw
1 | require('babel-core/register') |
2 | |
3 | const config = require('app/config').default |
4 | const createApi = require('app/api').default |
5 | const Url = require('url') |
6 | |
7 | const server = createApi(config) |
8 | |
9 | server.listen(config.api.url.port, function () { |
10 | const apiUrl = Url.format(config.api.url) |
11 | console.log(`api server listening at ${apiUrl}`) |
12 | }) |
13 |
Built with git-ssb-web