APItools / router.lua

A barebones router for Lua. It matches urls and executes lua functions.
MIT License
196 stars 47 forks source link

store param_names in spec table with key "TOKEN" #12

Closed lloydzhou closed 7 years ago

lloydzhou commented 8 years ago

using key of lua table to store plan url using "TOKEN" table to store param_name only loop "TOKEN" table when resolve path.

so in resolve function only need one loop.

mikz commented 7 years ago

@lloydzhou I'd be interested in merging this. Would you care rebasing it to resolve conflicts?

lloydzhou commented 7 years ago

@mikz i have merged the code

mikz commented 7 years ago

Thanks ! Plan to do some cleanup and optimizations and then do a release.