Skip to content

Commit 2bb9f05

Browse files
committed
removed pretty option due to caching issues
1 parent b18a455 commit 2bb9f05

File tree

4 files changed

+17
-32
lines changed

4 files changed

+17
-32
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ See the [Wiki](https://github.com/r-spacex/SpaceX-API/wiki) for full API Documen
2424
**Example Response**
2525

2626
```http
27-
GET https://api.spacexdata.com/v2/launches/latest?pretty
27+
GET https://api.spacexdata.com/v2/launches/latest
2828
```
2929

3030
```json
@@ -113,7 +113,6 @@ Local development info can be found [here](https://github.com/r-spacex/SpaceX-AP
113113
* API deployed on a [Heroku](https://www.heroku.com/) pipeline with pull request, staging and production servers
114114

115115
## FAQ's
116-
* All json responses can be pretty printed with the optional `pretty` querystring
117116
* If you have any questions or corrections, please open an issue and we'll get it merged ASAP
118117
* All data and photos are property of Space Exploration Technologies Corporation (SpaceX)
119118
* I am not affiliated with SpaceX in any way, shape, form, or fashion. Just a fun side project for me

package-lock.json

Lines changed: 16 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
"koa": "^2.5.0",
3131
"koa-compress": "^2.0.0",
3232
"koa-helmet": "^3.3.0",
33-
"koa-json": "^2.0.2",
3433
"koa-logger": "^3.2.0",
3534
"koa-redis-cache": "^3.0.0",
3635
"koa-respond": "^1.0.1",

src/app.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ const logger = require('koa-logger');
77
const helmet = require('koa-helmet');
88
const MongoClient = require('mongodb');
99
const cors = require('koa2-cors');
10-
const json = require('koa-json');
1110

1211
const home = require('./v2-routes/v2-home');
1312
const info = require('./v2-routes/v2-info');
@@ -34,9 +33,6 @@ app.use(cors({
3433
origin: '*',
3534
}));
3635

37-
// Add pretty output option for debugging
38-
app.use(json({ pretty: false, param: 'pretty' }));
39-
4036
// Hide logging when running tests
4137
// Disable Redis caching when running tests
4238
if (process.env.NODE_ENV !== 'test') {

0 commit comments

Comments
 (0)