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

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct