Skip to content

Commit

Permalink
Fix trailing space and add editorconfig to enforce
Browse files Browse the repository at this point in the history
  • Loading branch information
jsumners committed Apr 12, 2017
1 parent 4ae6067 commit 7920286
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
10 changes: 10 additions & 0 deletions .editorconfig
@@ -0,0 +1,10 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false
14 changes: 7 additions & 7 deletions docs/Routes.md
Expand Up @@ -61,10 +61,10 @@ fastify.route({
<a name="shorthand-declaration"></a>
### Shorthand declaration
The above route declaration is more *Hapi*-like, but if you prefer an *Express/Restify* approach, we support it as well:
`fastify.get(path, [schema], handler)`
`fastify.head(path, [schema], handler)`
`fastify.post(path, [schema], handler)`
`fastify.put(path, [schema], handler)`
`fastify.delete(path, [schema], handler)`
`fastify.options(path, [schema], handler)`
`fastify.patch(path, [schema], handler)`
`fastify.get(path, [schema], handler)`
`fastify.head(path, [schema], handler)`
`fastify.post(path, [schema], handler)`
`fastify.put(path, [schema], handler)`
`fastify.delete(path, [schema], handler)`
`fastify.options(path, [schema], handler)`
`fastify.patch(path, [schema], handler)`

0 comments on commit 7920286

Please sign in to comment.