add verify to upload_audio

This commit is contained in:
2023-08-11 15:59:48 +08:00
parent 6f81ed0895
commit d5c43151f4
2 changed files with 4 additions and 1 deletions
+4 -1
View File
@@ -3,8 +3,11 @@ local cjson = require "cjson"
local http = require "resty.http"
local create_task = require "lib.create_task"
local TaskTypes = require 'lib.task_type'
local verify = require('lib.jwt_verify')
--todo: add verify
local authHeader = ngx.req.get_headers().Authorization
local sudoerToken = ngx.req.get_headers().HtySudoerToken
verify(httpc, authHeader, sudoerToken)
local httpc = http.new()
ngx.req.read_body()