diff --git a/glc/onstart/onstart.go b/glc/onstart/onstart.go index 9095a4d..2c47e08 100644 --- a/glc/onstart/onstart.go +++ b/glc/onstart/onstart.go @@ -36,6 +36,8 @@ func Run() { // 控制器 gweb.RegisterController(method.POST, contextPath+"/v1/log/add", controller.JsonLogAddController) // 添加日志 gweb.RegisterController(method.POST, contextPath+"/v1/log/addBatch", controller.JsonLogAddBatchController) // 添加日志数组 + gweb.RegisterController(method.POST, contextPath, controller.JsonLogAddBatchController) // 添加日志数组(响应简化路径如 http://host:port/glc) + gweb.RegisterController(method.POST, "/", controller.JsonLogAddBatchController) // 添加日志数组(响应简化路径如 http://host:port/) gweb.RegisterController(method.POST, contextPath+"/v1/log/addTestData", controller.JsonLogAddTestDataController) // 添加测试日志(仅测试模式有效) gweb.RegisterController(method.POST, contextPath+conf.LogTransferAdd, controller.JsonLogTransferAddController) // 日志数据转发添加日志 gweb.RegisterController(method.POST, contextPath+"/v1/log/search", controller.LogSearchController) // 查询日志