ADDED: added missing attributes routes to the controller
UPDATED: added more housekeeping to the endpoints