commit
9e6fb6c00c
8 changed files with 11 additions and 424 deletions
|
@ -3,11 +3,11 @@
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"description": "Lighthouse - Next-gen search api for LBRY",
|
"description": "Lighthouse - Next-gen search api for LBRY",
|
||||||
"title": "Lighthouse API DOCS",
|
"title": "Lighthouse API DOCS",
|
||||||
"url" : "http://localhost",
|
"url" : "http://lighthouse.lbry.io",
|
||||||
"sampleUrl": "http://localhost",
|
"sampleUrl": "http://lighthouse.lbry.io",
|
||||||
"json_body": true,
|
"json_body": true,
|
||||||
"template": {
|
"template": {
|
||||||
"withCompare": true,
|
"withCompare": true,
|
||||||
"withGenerator": true
|
"withGenerator": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
190
docs/api_data.js
190
docs/api_data.js
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,21 +1 @@
|
||||||
define({
|
define({
"name": "Lighthouse",
"version": "0.0.1",
"description": "Lighthouse - Next-gen search api for LBRY",
"title": "Lighthouse API DOCS",
"url": "http://lighthouse.lbry.io",
"sampleUrl": "http://lighthouse.lbry.io",
"json_body": true,
"template": {
"withCompare": true,
"withGenerator": true
},
"defaultVersion": "0.0.0",
"apidoc": "0.3.0",
"generator": {
"name": "apidoc",
"time": "2018-04-08T06:08:09.948Z",
"url": "http://apidocjs.com",
"version": "0.17.6"
}
});
|
||||||
"name": "Lighthouse",
|
|
||||||
"version": "0.0.1",
|
|
||||||
"description": "Lighthouse - Next-gen search api for LBRY",
|
|
||||||
"title": "Lighthouse API DOCS",
|
|
||||||
"url": "http://localhost",
|
|
||||||
"sampleUrl": "http://localhost",
|
|
||||||
"json_body": true,
|
|
||||||
"template": {
|
|
||||||
"withCompare": true,
|
|
||||||
"withGenerator": true
|
|
||||||
},
|
|
||||||
"defaultVersion": "0.0.0",
|
|
||||||
"apidoc": "0.3.0",
|
|
||||||
"generator": {
|
|
||||||
"name": "apidoc",
|
|
||||||
"time": "2017-09-28T20:35:05.906Z",
|
|
||||||
"url": "http://apidocjs.com",
|
|
||||||
"version": "0.17.6"
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
|
@ -1,21 +1 @@
|
||||||
{
|
{
"name": "Lighthouse",
"version": "0.0.1",
"description": "Lighthouse - Next-gen search api for LBRY",
"title": "Lighthouse API DOCS",
"url": "http://lighthouse.lbry.io",
"sampleUrl": "http://lighthouse.lbry.io",
"json_body": true,
"template": {
"withCompare": true,
"withGenerator": true
},
"defaultVersion": "0.0.0",
"apidoc": "0.3.0",
"generator": {
"name": "apidoc",
"time": "2018-04-08T06:08:09.948Z",
"url": "http://apidocjs.com",
"version": "0.17.6"
}
}
|
||||||
"name": "Lighthouse",
|
|
||||||
"version": "0.0.1",
|
|
||||||
"description": "Lighthouse - Next-gen search api for LBRY",
|
|
||||||
"title": "Lighthouse API DOCS",
|
|
||||||
"url": "http://localhost",
|
|
||||||
"sampleUrl": "http://localhost",
|
|
||||||
"json_body": true,
|
|
||||||
"template": {
|
|
||||||
"withCompare": true,
|
|
||||||
"withGenerator": true
|
|
||||||
},
|
|
||||||
"defaultVersion": "0.0.0",
|
|
||||||
"apidoc": "0.3.0",
|
|
||||||
"generator": {
|
|
||||||
"name": "apidoc",
|
|
||||||
"time": "2017-09-28T20:35:05.906Z",
|
|
||||||
"url": "http://apidocjs.com",
|
|
||||||
"version": "0.17.6"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
0
docs/utils/send_sample_request.js
Normal file → Executable file
0
docs/utils/send_sample_request.js
Normal file → Executable file
|
@ -33,6 +33,7 @@
|
||||||
"gendoc": "apidoc -i server/ -o docs/"
|
"gendoc": "apidoc -i server/ -o docs/"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@koa/cors": "^2.2.1",
|
||||||
"app-root-path": "^2.0.1",
|
"app-root-path": "^2.0.1",
|
||||||
"babel-polyfill": "^6.5.0",
|
"babel-polyfill": "^6.5.0",
|
||||||
"bitcoin-promise": "filipnyquist/node-bitcoin-promise#1fbf1cb8913ca3542b66060d48ebea185661e0a7",
|
"bitcoin-promise": "filipnyquist/node-bitcoin-promise#1fbf1cb8913ca3542b66060d48ebea185661e0a7",
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import bodyParser from 'koa-bodyparser';
|
import bodyParser from 'koa-bodyparser';
|
||||||
|
import cors from '@koa/cors';
|
||||||
import Koa from 'koa';
|
import Koa from 'koa';
|
||||||
import logger from 'koa-logger';
|
import logger from 'koa-logger';
|
||||||
import helmet from 'koa-helmet';
|
import helmet from 'koa-helmet';
|
||||||
|
@ -16,7 +17,8 @@ const app = new Koa();
|
||||||
app
|
app
|
||||||
.use(logger())
|
.use(logger())
|
||||||
.use(bodyParser())
|
.use(bodyParser())
|
||||||
.use(helmet());
|
.use(helmet())
|
||||||
|
.use(cors());
|
||||||
|
|
||||||
routing(app);
|
routing(app);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue