Skip to content

Commit

Permalink
docs: improve
Browse files Browse the repository at this point in the history
  • Loading branch information
vaened committed Aug 23, 2024
1 parent 9a4ad8b commit 364e06e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ apiRouteService.has('admin.products.list')
### Best Practices

It's recommended to create a separate file to manage API calls. You could create a file named `axiosRouter.{ts, js}` and export something
like this:
To efficiently manage API calls, it’s advisable to create a dedicated file. You might name it `Router.{ts, js}`. In this file, you can
utilize `fetch` or a library like `axios` to streamline your API interactions. An example of what you might export could look like this:

```typescript
import createRouteService, {Parameters} from "./laroute";
Expand Down

0 comments on commit 364e06e

Please sign in to comment.