Sign in
Log inSign up
Hello this is my first post

Hello this is my first post

Suresh Chaudhary 's photo
Suresh Chaudhary
·Jun 27, 2022·

1 min read

# POST /routines
  def create
    @routine = Routine.create(routine_params)

    if @routine.save
      render json: @routine, include: :muscles, status: :created, location: @routine
    else
      render json: @routine.errors, status: :unprocessable_entity
    end
  end

have a nice day