Skip to content

Commit

Permalink
[minor] readme changes
Browse files Browse the repository at this point in the history
  • Loading branch information
calvintwr committed Mar 27, 2021
1 parent 2af8f29 commit c7fb64e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "express-routemagic",
"version": "2.0.4",
"version": "2.0.5",
"description": "A simple and fast, fire-and-forget module that all Nodejs+Express app should have, to automatically require all your express routes without bloating your code with `app.use('i/will/repeat/this', require('./i/will/repeat/this')`. 把 Express 路由图给自动化。",
"main": "index.js",
"scripts": {
Expand Down
3 changes: 3 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ import magic from 'express-routemagic'
magic.use(app)
```

That's it! Continue to code everything else and let Magic take care of requiring your routes.
(Note: Scroll to bottom for much more options.)

## Prologue
The author's express app was simple at first. Right out of the box, everything seemed complete, nothing more was desired. But very quickly, it grew, and something felt amiss: the oddly familiar muscle reflex in performing ctrl c and p...

Expand Down

0 comments on commit c7fb64e

Please sign in to comment.