restructured rest routes configuration and added the conversion of incoming form-data to json in the controller automatically