Koa middleware that sets the content type of the response to application/json
npm install @diegoh/api-middleware-content-type-json!Build
!License: MIT
!Package Version
Koa middleware that sets the content type of the response to application/json.
``js
const Koa = require('koa');
const setContentTypeJson = require('@diegoh/api-middleware-content-type-json');
const app = new Koa();
app.use(setContentTypeJson());
`
1. Create a new branch from master with a name relevant to the changes you're making. git branch -b my-new-feature-description
2. Push the branch and open a Pull Request (PR).
3. Request a code review.
npm run test:unit
npm run test:coverage
npm run lint or npm run lint:fix` to automatically fix any linting issues.