Refactored site route into services and enabled JSON output