Refactored books controller

Yes I agree with you. This particular route shouldn't be under the API. I was waiting for the discussion to end in order to make the changes