added routing for get, post and delete