add todos

This commit is contained in:
2022-09-01 00:02:40 +08:00
parent db3dd57fcf
commit 7fc751481b
3 changed files with 8 additions and 3 deletions
+3 -3
View File
@@ -86,9 +86,9 @@ server {
content_by_lua_file $resty_loc/nginx/scripts/upt.lua;
}
location /api/ngx/convert/test {
content_by_lua_file $resty_loc/nginx/scripts/test.lua;
}
# location /api/ngx/convert/test {
# content_by_lua_file $resty_loc/nginx/scripts/test.lua;
# }
location /api/v1/ws/ {
proxy_pass http://127.0.0.1:3001/api/v1/ws/;
+2
View File
@@ -4,6 +4,8 @@ local http = require "resty.http"
local create_task = require "lib.create_task"
local TaskTypes = require 'lib.task_type'
--todo: add verify
local httpc = http.new()
ngx.req.read_body()
local req_body = cjson.decode(ngx.req.get_body_data())
+3
View File
@@ -1,4 +1,7 @@
package.path = package.path .. ';<SCRIPT_PATH>/?.lua';
--todo: add verify
local Upt = require("lib.upt")
local uri = ngx.unescape_uri(ngx.var.arg_uri)
ngx.log(ngx.INFO, 'URI -> ' .. uri)