Skip to content

Commit

Permalink
Merge pull request #62 from azrikahar/patch-1
Browse files Browse the repository at this point in the history
Fix some typo
  • Loading branch information
GiovanniCardamone committed Mar 17, 2021
2 parents e7f0f8b + 7b3fa71 commit 09fea3e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Allowed attributes mapped to Http methods in module:

## :arrow_forward: Skipping files

to skip file in routes directory, prepend the `.` or `_` charater to filename
to skip file in routes directory, prepend the `.` or `_` character to filename

examples:

Expand All @@ -124,7 +124,7 @@ routes
```
> :warning: also any `*.test.js` and `*.test.ts` are skipped!
this is useful if you want to have a lib file containts functions that don't have to be a route, so just create the file with `_` prepending character
this is useful if you want to have a lib file which contains functions that don't have to be a route, so just create the file with `_` prepending character

## :page_facing_up: License

Expand Down
6 changes: 3 additions & 3 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Autoroutes directory scenario:
└── world.js => http://your-host/hello/world
```

in this case, the plugin will recursivley scan any routes in directory and map it urls
in this case, the plugin will recursively scan any routes in directory and map it urls

> :warning: those two directory structure are **NOT** equivalent:
>
Expand All @@ -111,7 +111,7 @@ in this case, the plugin will recursivley scan any routes in directory and map i
to ignore routes there are few way:

- prepend '.' character to your file/directory name
- prepend '_' characher to your file/directory name
- prepend '_' character to your file/directory name

> :information_source: files `*.test.js` and `*.test.ts` are automatically ignored
Expand Down Expand Up @@ -208,7 +208,7 @@ export default (fastifyInstance) => ({

### Route definition

Each route should be complaint to fastify route: [Method Specification](https://www.fastify.io/docs/latest/Routes/#full-declaration)
Each route should be compliant to fastify route: [Method Specification](https://www.fastify.io/docs/latest/Routes/#full-declaration)

the only exceptions is for `url` and `method` which are automatically mapped by project structure.

Expand Down

0 comments on commit 09fea3e

Please sign in to comment.