Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 539 Bytes

server.md

File metadata and controls

36 lines (29 loc) · 539 Bytes

Server

Options

{
swagger: SwaggerObject,
configureAjv(ajv: Ajv): AjvConfigured,
https: {
    key_file_name: string,
    cert_file_name: string,
    passphrase: string
  },
console: CustomConsole {
    log: function,
    error: function
  }
}

Instance methods

  • app.get(req, res)
  • app.post(req, res)
  • app.put(req, res)
  • app.patch(req, res)
  • app.del(req, res)
  • app.head(req, res)
  • app.trace(req, res)

Special routes are

  • app.ws(req, ws)
  • app.any(req, res)
  • app.options(req, res)