2   class UserBlocksController < ApiController
 
   5     before_action :set_request_formats
 
   8       raise OSM::APIBadUserInput, "No id was given" unless params[:id]
 
  10       @user_block = UserBlock.find(params[:id])
 
  11     rescue ActiveRecord::RecordNotFound
 
  12       raise OSM::APINotFoundError