docs: fix some typos (#274)

This commit is contained in:
Victor Saase
2022-06-23 09:32:06 +00:00
committed by GitHub
parent 97238ef5ac
commit 14e169831e
2 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -1,11 +1,11 @@
---
description: |
Fresh's architechture is designed to make it easy to build fast, scalable, and reliable applications.
Fresh's architecture is designed to make it easy to build fast, scalable, and reliable applications.
---
Fresh is designed to makes it easy to build fast, scalable, and reliable
Fresh is designed to make it easy to build fast, scalable, and reliable
applications. To do this, it makes opinionated decisions about how one should
build web applications. These decisions are backed by strong emperial data
build web applications. These decisions are backed by strong empirical data
gathered from experts in the field. Some examples of these principles are:
- Page load times should be reduced to a minimum.
+4 -4
View File
@@ -10,8 +10,8 @@ handler. This allows modifying or checking requests and responses. Common
use-cases for this are logging, authentication, and performance monitoring.
Each middleware gets passed a `next` function in the context argument that is
used trigger child handlers. The `ctx` also has a `state` property that can be
used to pass arbituary data to downstream (or upstream) handlers.
used to trigger child handlers. The `ctx` also has a `state` property that can
be used to pass arbitrary data to downstream (or upstream) handlers.
```ts
// routes/_middleware.ts
@@ -59,13 +59,13 @@ For a request to `/` the request will flow like this:
1. The `routes/_middleware.ts` middleware is invoked.
2. Calling `ctx.next()` will invoke the `routes/index.ts` handler.
For a request to `/admin` the request flow like this:
For a request to `/admin` the request flows like this:
1. The `routes/_middleware.ts` middleware is invoked.
2. Calling `ctx.next()` will invoke the `routes/admin/_middleware.ts` middlware.
3. Calling `ctx.next()` will invoke the `routes/admin/index.ts` handler.
For a request to `/admin/signin` the request flow like this:
For a request to `/admin/signin` the request flows like this:
1. The `routes/_middleware.ts` middleware is invoked.
2. Calling `ctx.next()` will invoke the `routes/admin/_middleware.ts`