This PR adds the option to specify a HTTP status code to success responses as well if so desired. It will check if the file name ends in 3 digits, and if so use those so both success-201.json and success-example-201.json will be valid.
Not sure if this is needed for _sendSuccessNotJSON and _sendSuccessJSONoptions.res.send(responseFile); case.
This PR adds the option to specify a HTTP status code to success responses as well if so desired. It will check if the file name ends in 3 digits, and if so use those so both
success-201.json
andsuccess-example-201.json
will be valid.Not sure if this is needed for
_sendSuccessNotJSON
and_sendSuccessJSON
options.res.send(responseFile);
case.