Sha256: 08e0b30ce7da2b2c03a34fc0102fc79f8aa34d0464fe9b3c53fde01bc146f5bf

Contents?: true

Size: 278 Bytes

Versions: 10

Compression:

Stored size: 278 Bytes

Contents

# frozen_string_literal: true

module Metatron
  # Used for "normal" sync requests
  class SyncController < Controller
    options "/" do
      headers "Access-Control-Allow-Methods" => ["POST"]
      halt 200
    end

    post "/" do
      halt(sync.to_json)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
metatron-0.1.9 lib/metatron/sync_controller.rb
metatron-0.1.8 lib/metatron/sync_controller.rb
metatron-0.1.7 lib/metatron/sync_controller.rb
metatron-0.1.6 lib/metatron/sync_controller.rb
metatron-0.1.5 lib/metatron/sync_controller.rb
metatron-0.1.4 lib/metatron/sync_controller.rb
metatron-0.1.3 lib/metatron/sync_controller.rb
metatron-0.1.2 lib/metatron/sync_controller.rb
metatron-0.1.1 lib/metatron/sync_controller.rb
metatron-0.1.0 lib/metatron/sync_controller.rb