Last active
April 20, 2020 04:35
-
-
Save jsdmultisys/511653cc4091e118cf567f1c23549759 to your computer and use it in GitHub Desktop.
List all retailers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const retailers = await Retailer.all() | |
if(!retailer) { | |
throw YourCustomerErrorClass('your-message') | |
} | |
return response.json({data: retailers}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment