diff --git a/internal/server/sv1/lua_handler.go b/internal/server/sv1/lua_handler.go index 2494184..d2ed5f2 100644 --- a/internal/server/sv1/lua_handler.go +++ b/internal/server/sv1/lua_handler.go @@ -27,6 +27,13 @@ func addInitiatorHeaders(req *http.Request, headers http.Header) { headers.Set("X-Initiator-Referer", req.Referer()) } +// A small reminder: this code is only at the MVP stage, +// and some parts of the code may cause shock from the +// incompetence of the developer. But, in the end, +// this code is just an idea. If there is a desire to +// contribute to the development of the code, +// I will be only glad. +// TODO: make this huge function more harmonious by dividing responsibilities func (h *HandlerV1) handleLUA(r *http.Request, req *rpc.RPCRequest, path string) *rpc.RPCResponse { L := lua.NewState() defer L.Close()