added routes for api calls and added method to model to return hashed response an introduced a food controller for api and removed comma in base controller in api.