Sha256: db2aae6efe35185c8857cb1b9d89e877e755d8b808eb028a6e9a61cca6134b19
Contents?: true
Size: 470 Bytes
Versions: 1
Compression:
Stored size: 470 Bytes
Contents
require 'webmachine' require 'spanx/api/resources/blocked_ips' require 'spanx/api/resources/unblock_ip' module Spanx module API Machine = Webmachine::Application.new do |app| app.routes do # DELETE /ips/blocked/127.0.0.1 add ["ips", "blocked", :ip], ->(req) { req.method == "DELETE" }, Resources::UnblockIP # GET /ips/blocked add ["ips", "blocked"], Resources::BlockedIps end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spanx-0.3.0 | lib/spanx/api/machine.rb |