def index
      admin = true
      shared = false
      admin = params[:is_admin] == 'true' if params[:admin]
      shared = params[:shared] == 'true' if params[:shared]
      result = @user.user_boards.shared(shared)
      result = result.admin if admin
      paginate json: result, per_page: 10
    end
def index
      admin = true
      shared = false
      admin = params[:is_admin] == 'true' if params[:admin]
      shared = params[:shared] == 'true' if params[:shared]
      result = @user.user_boards.shared(shared)
      result = result.admin if admin
      paginate json: result, per_page: 10
    end
Returns boards belonging to current user

 `GET /api/boards`