Skip to content

Ability to add additional types #19

Description

@btilford

It would be nice to add types so that the following would work.

// Accepts: application/hal+json
const accept = accepts(req);

switch(accept.type(['json', 'html'])) {
    case 'json':
       // would match both application/json and application/hal+json
    default:
      // 
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions