Skip to content

jaydeeparr/adonis-js-custom-response

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

returnResponse is common response function. list of params to passed.

  1. response : Response contract object.
  2. message: any message you want to passed on response.
  3. status: status of the response.
  4. data = object of array you want to passed.
  5. errors: specially designed for exception handling.

if you want to override the response of your entire application copy and replace with Handler.ts code into your App/Exceptions. and please dont forget to passed returnResponse function path.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%