Middleware

Below are a list of the official supported Curveball middleware.

Access Logs

Automatically log HTTP requests and responses to the console

Read more

Body Parser

Helps parse JSON and Text request bodies

Read more

Browser-To-Bearer

Allows a user with a regular browser to log into an API that's an OAuth2 resource server

Read more

Browser

Automatically turns JSON responses from an API into HTML responses

Read more

CORS

Adds CORS support

Read more

Links

Helps parse and generate HTTP Weblinks

Read more

OAuth2

Automatically validate OAuth2 bearer tokens

Read more

Router

Create routes

Read more

Session-Redis

Use Redis to store Curveball sessions

Read more

Session

Session support

Read more

Static

Serves static files from a directory

Read more

Validator

Use JSON schema to automatically validate and type requests

Read more