schneidmaster/rspec-blog-example

View on GitHub
app/controllers/api/v1/articles_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class Api::V1::ArticlesController < ApplicationController
  def index
    render json: Article.all
  end

  def show
    render json: Article.find(params[:id])
  end
end