File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # micro -router
1+ # fs -router
22Use the FS as your micro router
3- [ ![ Build Status] ( https://travis-ci.org/jesseditson/micro -router.svg?branch=master )] ( https://travis-ci.org/jesseditson/micro -router )
4- [ ![ Coverage Status] ( https://coveralls.io/repos/github/jesseditson/micro -router/badge.svg?branch=master )] ( https://coveralls.io/github/jesseditson/micro -router?branch=master )
3+ [ ![ Build Status] ( https://travis-ci.org/jesseditson/fs -router.svg?branch=master )] ( https://travis-ci.org/jesseditson/fs -router )
4+ [ ![ Coverage Status] ( https://coveralls.io/repos/github/jesseditson/fs -router/badge.svg?branch=master )] ( https://coveralls.io/github/jesseditson/fs -router?branch=master )
55
66### "features"
77
@@ -24,7 +24,7 @@ This is the simplest approach I could think of to create a flexible router that
2424``` javascript
2525// index.js
2626const { send } = require (' micro' )
27- let match = require (' micro -router' )(__dirname + ' /routes' )
27+ let match = require (' fs -router' )(__dirname + ' /routes' )
2828
2929module .exports = async function (req , res ) {
3030 let matched = match (req)
@@ -40,7 +40,7 @@ const { send } = require('micro')
4040
4141// respond to specific methods by exposing their verbs
4242module .exports .GET = async function (req , res ) {
43- // micro -router decorates your req object with param and query hashes
43+ // fs -router decorates your req object with param and query hashes
4444 send (res, 200 , { params: req .params , query: req .query })
4545}
4646```
Original file line number Diff line number Diff line change 11{
2- "name" : " micro -router" ,
2+ "name" : " fs -router" ,
33 "version" : " 0.1.0" ,
44 "description" : " Tiny router using the fs as paths" ,
55 "main" : " index.js" ,
1010 },
1111 "repository" : {
1212 "type" : " git" ,
13- "url" : " git+https://github.com/jesseditson/micro -router.git"
13+ "url" : " git+https://github.com/jesseditson/fs -router.git"
1414 },
1515 "keywords" : [
1616 " router" ,
2424 "author" : " Jesse Ditson <jesse.ditson@gmail.com>" ,
2525 "license" : " BSD-3-Clause" ,
2626 "bugs" : {
27- "url" : " https://github.com/jesseditson/micro -router/issues"
27+ "url" : " https://github.com/jesseditson/fs -router/issues"
2828 },
29- "homepage" : " https://github.com/jesseditson/micro -router#readme" ,
29+ "homepage" : " https://github.com/jesseditson/fs -router#readme" ,
3030 "devDependencies" : {
3131 "coveralls" : " ^2.11.15" ,
3232 "nyc" : " ^10.0.0" ,
You can’t perform that action at this time.
0 commit comments