Add usage

This commit is contained in:
Alfredo Cardigliano 2023-02-13 18:10:37 +01:00
parent a6f403d8bf
commit a4cc439c8e

View file

@ -12,6 +12,11 @@ local rest_utils = require "rest_utils"
sendHTTPContentTypeHeader('application/json')
--
-- Test ntopng reachability and authentication (used by Python API)
-- Example: curl -u admin:admin http://localhost:3000/lua/rest/v2/connect/test.lua
--
local rc = rest_utils.consts.success.ok
local res = {}