@@ -2,23 +2,23 @@ Koa-Authz
2
2
====
3
3
[ ![ NPM version] [ npm-image ]] [ npm-url ]
4
4
[ ![ NPM download] [ download-image ]] [ download-url ]
5
- [ ![ codebeat badge] ( https://codebeat.co/badges/c17c9ee1-da42-4db3-8047-9574ad2b23b1 )] ( https://codebeat.co/projects/github-com-node-casbin-koa-authz-master )
5
+ [ ![ codebeat badge] ( https://codebeat.co/badges/9defa882-898c-4dcb-91a6-7e8f061ccaac )] ( https://codebeat.co/projects/github-com-node-casbin-koa-authz-master )
6
6
[ ![ Build Status] ( https://travis-ci.org/node-casbin/koa-authz.svg?branch=master )] ( https://travis-ci.org/node-casbin/koa-authz )
7
7
[ ![ Coverage Status] ( https://coveralls.io/repos/github/node-casbin/koa-authz/badge.svg?branch=master )] ( https://coveralls.io/github/node-casbin/koa-authz?branch=master )
8
8
[ ![ Gitter] ( https://badges.gitter.im/Join%20Chat.svg )] ( https://gitter.im/casbin/lobby )
9
9
10
- [ npm-image ] : https://img.shields.io/npm/v/casbin- koa-authz.svg?style=flat-square
11
- [ npm-url ] : https://npmjs.org/package/casbin- koa-authz
12
- [ download-image ] : https://img.shields.io/npm/dm/casbin- koa-authz.svg?style=flat-square
13
- [ download-url ] : https://npmjs.org/package/casbin- koa-authz
10
+ [ npm-image ] : https://img.shields.io/npm/v/koa-authz.svg?style=flat-square
11
+ [ npm-url ] : https://npmjs.org/package/koa-authz
12
+ [ download-image ] : https://img.shields.io/npm/dm/koa-authz.svg?style=flat-square
13
+ [ download-url ] : https://npmjs.org/package/koa-authz
14
14
15
15
Koa-Authz is an authorization middleware for [ Koa] ( https://github.com/koajs/koa ) , it's based on `` Node-Casbin `` : [ https://github.com/casbin/node-casbin ] ( https://github.com/casbin/node-casbin ) .
16
16
17
17
## Installation
18
18
19
19
``` shell
20
20
# nodejs version >= 7.6.0
21
- npm install casbin- koa-authz
21
+ npm install koa-authz
22
22
```
23
23
24
24
## Simple Example
@@ -27,7 +27,7 @@ npm install casbin-koa-authz
27
27
const { Enforcer } = require (' casbin' )
28
28
const Koa = require (' koa' )
29
29
const app = new Koa ()
30
- const authz = require (' casbin- koa-authz' )
30
+ const authz = require (' koa-authz' )
31
31
32
32
// response
33
33
app .use ((ctx , next ) => {
0 commit comments