# 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