Commit fc600b2d authored by Cool Fire's avatar Cool Fire

Add route to pull down tor hidden services

parent 06a9a24f
Pipeline #1428 passed with stage
in 2 minutes and 25 seconds
......@@ -8,4 +8,11 @@ class Manager2Api < Sinatra::Base
result = git_get_full['profile::sshtunnel::destination::tunnels']
erb :result, locals: { message: 'Retreived configured tunnels', result: result }
end
# List configured TOR hidden services
post '/v1/i2am/torservice/list' do
check_key(params)
result = git_get_full['i2am::torservices']
erb :result, locals: { message: 'Retreived TOR services', result: result }
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment