refactory code for getAttribute
use attribute and uses
middleware refactory
response.send
ds and config file