digitaltom/photobooth

View on GitHub
app/controllers/picture_sets_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

class PictureSetsController < ApplicationController

  def index
    render json: PictureSet.all
  end

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

  def create
    render json: PictureSet.create
  end

  def destroy
    PictureSet.find(params[:id]).destroy
    render json: ''
  end
end