Common
Common contains a set of reusable middlewares, event related classes base of node-nats-streaming and pre-defined error classes.
Error
It consists of the following errors:
- bad-request-error
- custom-error
- database-connection-error
- not-authorized-error
- not-found-error
- request-validation-error
Event
It consists of the following events:
- base-listener
- base-publisher
- subjects
- ticket-created-event
- ticket-updated-event
Middleware
It consists of the following middleware:
- current-user
- require-auth
- error-handler
- validate-request