MM
Size: a a a
MM
VK
VK
AM
D
AK
D
DS
KN
D
YD
EL
D
D
local function http_telemetry_process(req)
return req:render{ json = {info = "Successfully created!"} }
end
local function init(opts) -- luacheck: no unused args
local httpd = cartridge.service_get('httpd')
httpd:route({method = 'GET', path = '/hello'}, function()
return {body = 'Hello world!'}
end)
httpd:route(
{ path = '/api/telemetry', method = 'POST', public = true },
http_telemetry_process
)
return true
end
AK
МЖ