UNPKG

citizen

Version:

Node.js MVC web application framework. Includes routing, serving, caching, session management, and other helpful tools.

18 lines (11 loc) 571 B
// application events // This module optionally exports the following methods: // start(params, request, response, context) - Called when the application starts // error(params, request, response, context, err) - Called on every application error (500-level) // If you have no use for this file, you can delete it. export const start = async (config) => { // Anything you want to happen when the application starts } export const error = async (params, request, response, context, err) => { // Anything you want to happen when the application throws an error }