-
-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: fixed Codacy Static Code Analysis issues code
- Loading branch information
1 parent
d362490
commit 2e7cebc
Showing
1 changed file
with
18 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,25 +27,24 @@ Example on how to create and endpoint for a new topic: | |
Example: | ||
|
||
```javascript | ||
const usersList = [ | ||
{ | ||
"email": "[email protected]", | ||
"gender": "male", | ||
"username": "user0000", | ||
"first_name": "John", | ||
"last_name": "Doe", | ||
"title": "mr", | ||
}, | ||
{ | ||
"email": "[email protected]", | ||
"gender": "male", | ||
"username": "user0001", | ||
"first_name": "Hydra", | ||
"last_name": "Smith", | ||
"title": "mrs", | ||
}, | ||
// ... | ||
]; | ||
const usersList = [ | ||
{ | ||
"email": "[email protected]", | ||
"gender": "male", | ||
"username": "user0000", | ||
"first_name": "John", | ||
"last_name": "Doe", | ||
"title": "mr", | ||
}, | ||
{ | ||
"email": "[email protected]", | ||
"gender": "male", | ||
"username": "user0001", | ||
"first_name": "Hydra", | ||
"last_name": "Smith", | ||
"title": "mrs", | ||
}, | ||
]; | ||
``` | ||
|
||
- 3 - Create an `api` folder to store the `routes` file, like `./modules/users/api/users-routes.ts` | ||
|