Sha256: 12c3687b134b55ff1153972a4f273792f74398d5b95200abb91b14bbcd0ca15e

Contents?: true

Size: 319 Bytes

Versions: 3

Compression:

Stored size: 319 Bytes

Contents

module Swat
  module Api
    class ConsoleController < Swat::ApplicationController


      def show
        render json: Revision::Root.stats
      end

      def clean
        result = RevisionCleaner.new.clean_by(params[:attribute], params[:value])
        render json: { result: result }
      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sw2at-ui-0.0.16 app/controllers/swat/api/console_controller.rb
sw2at-ui-0.0.15 app/controllers/swat/api/console_controller.rb
sw2at-ui-0.0.14 app/controllers/swat/api/console_controller.rb