Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
daneryl committed Jun 7, 2017
2 parents b2a316d + d6416a5 commit a144a5a
Show file tree
Hide file tree
Showing 18 changed files with 107 additions and 555 deletions.
18 changes: 3 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,9 @@
$ curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
$ sudo apt-get install -y nodejs
```
- **Elasticsearch** (2.4)
- OSX
- `brew update`
- `brew install elasticsearch@2.4`

- Ubuntu
```
$ wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
$ echo "deb http://packages.elastic.co/elasticsearch/2.x/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-2.x.list
$ sudo apt-get update && sudo apt-get -y install elasticsearch
$ sudo update-rc.d elasticsearch defaults 95 10
$ echo "deb https://packages.elastic.co/logstash/2.3/debian stable main" | sudo tee -a /etc/apt/sources.list
$ sudo apt-get update && sudo apt-get install logstash
```
- **Elasticsearch** (5.4)
- https://www.elastic.co/guide/en/elasticsearch/reference/current/install-elasticsearch.html

- **Docsplit**
- OSX
- `brew install ruby`
Expand Down
102 changes: 0 additions & 102 deletions app/api/documents/documentQueryBuilder.js

This file was deleted.

4 changes: 4 additions & 0 deletions app/api/documents/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ export default (app) => {
}

documents.getById(id, req.language).then(response => {
if (!response) {
res.json({}, 404);
return;
}
res.json({rows: [response]});
})
.catch((error) => res.json({error}, 500));
Expand Down
117 changes: 0 additions & 117 deletions app/api/documents/specs/documentsQueryBuilder.spec.js

This file was deleted.

8 changes: 7 additions & 1 deletion app/api/entities/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,13 @@ export default (app) => {

app.get('/api/entities', (req, res) => {
entities.getById(req.query._id, req.language)
.then(response => res.json({rows: [response]}))
.then((response) => {
if (!response) {
res.json({}, 404);
return;
}
res.json({rows: [response]});
})
.catch(res.error);
});

Expand Down
Loading

0 comments on commit a144a5a

Please sign in to comment.