5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-28 18:26:21 +00:00
panel/app/lib/hidden_service_client.rb

14 lines
221 B
Ruby
Raw Normal View History

# frozen_string_literal: true
require 'httparty'
class HiddenServiceClient
include HTTParty
base_uri ENV.fetch('HIDDEN_SERVICE', 'http://tor:3000')
def create(name)
self.class.get("/#{name}").body
end
end