changed post to get in routes