* API Articles v0-v1 restructure * Remove unused helper * Bulk move API controllers into concerns + add V1 controllers * Extract API routes + some fixes * Fix v1 api_controller authenticate! + add more article_controller specs * Completed spec/requests/api/v1/articles_spec.rb * specs up to listings * All v1 specs except for 9 skips * mime_types cleanup + authenticate! relocation Co-authored-by: Fernando Valverde <fernando@visualcosita.com>
4 lines
193 B
Ruby
4 lines
193 B
Ruby
json.name user.name
|
|
json.path "/#{user.path.delete_prefix('/')}"
|
|
json.username user.try(:username) || user.name
|
|
json.profile_image user.profile_image_url_for(length: 60)
|