Skip to content

Commit

Permalink
Change header style
Browse files Browse the repository at this point in the history
  • Loading branch information
Foveluy committed Apr 6, 2018
1 parent ff95fe2 commit a9a7413
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Routing decorator for eggjs



### For install
### For Install
```bash
npm install --save egg-blueprint
```
Expand All @@ -44,7 +44,7 @@ export default (app: Application) => {

```

# Prefix url globally
# Prefix Url Globally
```js
//router.ts
Blueprint(app,{prefix:'/api'})
Expand All @@ -59,7 +59,7 @@ export default class index extends Controller {

```

# Prefix url for controller
# Prefix Url For Controller
```js

//controller.ts
Expand Down Expand Up @@ -96,7 +96,7 @@ export default class index extends Controller {



# Start routing
# Start Routing

```js
import { bp } from 'egg-blueprint'
Expand All @@ -115,7 +115,7 @@ export default class index extends Controller {
}
```

# Adding parmas
# Adding Parmas

```js
@bp.get('/foo/:bar')
Expand All @@ -125,7 +125,7 @@ export default class index extends Controller {
}
```

# Router middleware
# Router Middleware

Router middleware will run before the target function.

Expand Down

0 comments on commit a9a7413

Please sign in to comment.