Skip to content

Helpers

We call helpers some functions inside the framework that turns the developer live more easy and actually we have it either in req object and res

Request Object

  • body() - Retrieve request body.
  • file() - Retrieve file field when Content-Type is multipart/form-data.
  • get() - Retrieve specific query pameter from the URL.
  • param() - Retrieve specific path pameter from the URL.

Response Object

  • json() - Return a json object as response.
  • status() - Set the response status code.
  • text() - Return text as response.