Skip to content

undefined symbol: r3_tree_create #44

Open
@xiangnanscu

Description

@xiangnanscu

code

local r3 = require("resty.r3_resty").new()
local encode_json = require("cjson.safe").encode

function foo(params) -- foo handler
  ngx.say("foo: ", encode_json(params))
end

-- routing
r3:get("/foo/{id}/{name}", foo)

-- don't forget!!!
r3:compile()

-- dispatch
local ok = r3:dispatch("/foo/a/b", "GET")

print(ok)

and get error:
undefined symbol: r3_tree_create

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions