Skip to content

Commit

Permalink
feat: fixed Codacy Static Code Analysis issues code
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalkhoje committed Oct 21, 2023
1 parent d362490 commit 2e7cebc
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions marketing-site/src/pages/integration/add-api-endpoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 2e7cebc

Please sign in to comment.