lua-resty-route icon indicating copy to clipboard operation
lua-resty-route copied to clipboard

what self demo

Open yingnierxiao opened this issue 7 years ago • 6 comments

route "*/users" (function(self) end)

what self functions? self:to ? self:render?

yingnierxiao avatar Apr 20 '17 08:04 yingnierxiao

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.

bungle avatar Apr 20 '17 12:04 bungle

route:use "resty.route.middleware.reqargs" {} is error now or route:use "reqargs" {}

yingnierxiao avatar Apr 21 '17 05:04 yingnierxiao

@yingnierxiao, that's right, middleware should be rewritten. They are for old version. Haven't got time to do that, sorry.

bungle avatar Apr 21 '17 10:04 bungle

@bungle I know you're busy :) having docs on this would be awesome :thumbsup:

p0pr0ck5 avatar Nov 29 '17 03:11 p0pr0ck5

@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

bungle avatar Nov 29 '17 23:11 bungle

@p0pr0ck5, ok here are some: https://github.com/bungle/lua-resty-route#router-api

bungle avatar Nov 30 '17 01:11 bungle