Skip to content

A Koa.js middleware for adding spec-compliant JSON-API content negotiation

License

Notifications You must be signed in to change notification settings

cmbankester/koa-jsonapi-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

koa-jsonapi-middleware

A Koa.js middleware for adding spec-compliant JSON-API content negotiation

Usage

npm install --save koa-jsonapi-middleware

In your application:

import koa     from 'koa';
import jsonapi from 'koa-jsonapi-middleware';

const app = koa();

// before any middlewarese/handlers that are capable of altering `this.body`
app.use(jsonapi());

...

About

A Koa.js middleware for adding spec-compliant JSON-API content negotiation

Resources

License

Stars

Watchers

Forks

Packages

No packages published