Skip to content

Commit 425e99a

Browse files
committed
ref(roles): role -> roles
1 parent a07fa6b commit 425e99a

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,16 @@ For now, we are implement only few roles: `user` and `admin`
4545
Usage example:
4646

4747
```typescript
48-
@Auth('admin', 'user')
48+
@Auth(RolesEnum.ADMIN, RolesEnum.USER)
4949
```
50-
or
50+
or for all roles:
51+
5152
```typescript
52-
@Auth(RolesEnum.ADMIN)
53+
@Auth()
5354
```
5455

56+
_Note: before use it for sql database, you must run migrations._
57+
5558
### Serialization
5659
Implementing `@Serialize` decorator will start process before objects are returned in a network response
5760
Example:

generators/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "generator-nest-js-boilerplate",
3-
"version": "2.12.1",
3+
"version": "2.30.0",
44
"description": "This generator will help you to build your own Nest.js Mongodb API using TypeScript 4",
55
"author": "onix-systems",
66
"license": "MIT",

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "generator-nest-js-boilerplate",
3-
"version": "2.20.0",
3+
"version": "2.30.0",
44
"description": "This generator will help you to build your own Nest.js Mongodb API using TypeScript 4",
55
"author": "onix-systems",
66
"license": "MIT",

0 commit comments

Comments
 (0)