SeriouslyAwesome/democratictravelers

View on GitHub
app/controllers/api/v1/users_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class API::V1::UsersController < ApplicationController
  before_action :authenticate_user_from_token!

  def show
    @user = User.find_by(username: params[:id])
    @experiences = @user.experiences
    @locations = @experiences.map(&:location)
  end
end