Jump to content
  • 0

What attributes does Ev have?



1 answer to this question

Recommended Posts

  • 0

Hello! Event in the Lolo IDE contains the following attributes:

ev = {

  method,     // HTTP Method, i.e. "GET"

  path,           // Request path, "/api/users/123456?display=no"

  params,      // Route params, { id: 123456 } from the path example

  query,         // Query parameters, { display: "no" } from the path example

  body,          // Request body, parsed by BodyParser

  headers,     // Request headers

  routePath,  // Same as path minus an optional prefix, in this case "/users/123456?display=no" if we assume that the prefix is "/api"


Link to comment
Share on other sites

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...