Add route for get_favorites

output json for requests
Fix type errors
Add some json building