citizen
Version:
Node.js MVC web application framework. Includes routing, serving, caching, session management, and other helpful tools.
18 lines (11 loc) • 607 B
JavaScript
// response events
// This module optionally exports the following methods:
// start(params, request, response, context) - Called at the beginning of every response
// end(params, request, response, context) - Called at the end of every response (after the response has been sent to the client)
// If you have no use for this file, you can delete it.
export const start = (params, request, response, context) => {
// Anything you want to happen at the beginning of a response
}
export const end = (params, request, response, context) => {
// Anything you want to happen at the end of a response
}