adding all required routes for the api

Complete rest api for the wines
Completed the API for all rest functions
cleaning up code
fixing function calls