My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more
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