barista:NodeJS 的 URL 路由器生成器

时间:2021-06-21 14:08:01
【文件属性】:
文件名称:barista:NodeJS 的 URL 路由器生成器
文件大小:378KB
文件格式:ZIP
更新时间:2021-06-21 14:08:01
JavaScript Barista 是一个用于 NodeJS 的简单 URL 路由器。 简而言之 router . get ( '/:beverage/near/:location(.:format)' ) . to ( 'beverage.byLocation' ) router . first ( '/coffee/near/90210' , 'GET' ) // -> { controller:'beverage', action:'byLocation', beverage:'coffee', location:90210 } router . url ( { controller : 'beverage' , action : 'byLocation' , beverage : 'coffee' , location : 90210 , format : 'json
【文件预览】:
barista-master
----.gitignore(32B)
----browser.js(49B)
----tests()
--------mocha.coffee(5KB)
--------barista.test.coffee(35KB)
----docs()
--------route.html(51KB)
--------helpers.html(5KB)
--------key.html(15KB)
--------router.html(26KB)
--------public()
--------text.html(8KB)
--------docco.css(10KB)
--------resource.html(11KB)
----Readme.md(6KB)
----bower.json(444B)
----package.json(1KB)
----dist()
--------barista.js(84KB)
----index.js(105B)
----LICENSE.txt(1KB)
----.npmignore(23B)
----.travis.yml(61B)
----Makefile(446B)
----lib()
--------route.coffee(12KB)
--------helpers.coffee(622B)
--------resource.coffee(2KB)
--------key.coffee(3KB)
--------text.coffee(1KB)
--------router.coffee(6KB)

网友评论