nanoexpress
GitHubKnown BugsFAQ
  • Getting Started
  • Server
  • Middlewares
  • Routes
    • Static Serve
    • Request
    • Response
    • Route
    • Errors handling
  • Schemas
  • WebSocket
  • Docker / Linux
  • Optimizations
  • Benchmarks
  • Known bugs
  • Sponsors
  • FAQ
  • License
Powered by GitBook
On this page
  • Options
  • Instance methods

Was this helpful?

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)

PreviousGetting StartedNextMiddlewares

Last updated 9 months ago

Was this helpful?