mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 13:01:42 +00:00
13 lines
221 B
Ruby
13 lines
221 B
Ruby
# 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
|