mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 10:41:34 +00:00
Cleanup old fontawesome 4 and bootstrap 3
This commit is contained in:
parent
7402bbdd14
commit
b5ba28d8d1
55 changed files with 0 additions and 14 deletions
23
attic/scripts/lua/modules/grafana/index.lua
Normal file
23
attic/scripts/lua/modules/grafana/index.lua
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
--
|
||||
-- (C) 2013-18 - ntop.org
|
||||
--
|
||||
|
||||
-- This page is requested by grafana Simple JSON plugin when testing the datasource
|
||||
-- datasource test involes a request to / that is mapped by ntopng to index.lua
|
||||
|
||||
dirs = ntop.getDirs()
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
||||
|
||||
require "lua_utils"
|
||||
require "grafana_utils"
|
||||
|
||||
local json = require("dkjson")
|
||||
|
||||
if isCORSpreflight() then
|
||||
processCORSpreflight()
|
||||
else
|
||||
local corsr = {}
|
||||
corsr["Access-Control-Allow-Origin"] = _SERVER["Origin"]
|
||||
sendHTTPHeader('application/json', nil, corsr)
|
||||
print(json.encode({status="OK"}, nil))
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue