lua-resty-route
lua-resty-route copied to clipboard
what self demo
route "*/users" (function(self) end)
what self functions? self:to ? self:render?
Yes, I should add that. self
functions are basically wrapping ngx.exit
etc. functions so that we can run possible after filters etc. I hope that I do have some time with this in a future.
route:use "resty.route.middleware.reqargs" {} is error now or route:use "reqargs" {}
@yingnierxiao, that's right, middleware should be rewritten. They are for old version. Haven't got time to do that, sorry.
@bungle I know you're busy :) having docs on this would be awesome :thumbsup:
@p0pr0ck5 thanks, I try to get my act together and fix this. I really think there are nice things with this library and I have spend a lot of time and effort on it. I am open for contributions, as always... there are a quite good list of what could be done here: https://github.com/bungle/lua-resty-route#roadmap
@p0pr0ck5, ok here are some: https://github.com/bungle/lua-resty-route#router-api