created friendships controller and added url variable for api