类似go语言的gin框架
TODO: Write installation instructions here
require "cin"
r = Cin.default
def j(ctx)
{hello: "zhuzhenfeng"}
end
r.use(JsonHandler)
r.get("/json", ->j(Cin::Context))
r.run()
TODO: Write development instructions here
- Fork it (https://github.com/your-github-user/cin/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- zhuzhenfeng.code - creator and maintainer