Skip to content

Commit

Permalink
Fix some broken links
Browse files Browse the repository at this point in the history
  • Loading branch information
marcuskohlberg committed Sep 23, 2024
1 parent 53f8db7 commit 05a0c60
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/how-to/express-migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ With Encore.ts, you create APIs using the `api` function. This function takes an
The main difference compared to Express.js is that Encore.ts is type-safe, meaning you define the request and response
schemas in the callback function. You then return an object matching the response schema. In case you need to operate at
a lower abstraction level, Encore supports defining raw endpoints that let you access the underlying HTTP request.
Learn more in our [API Schemas docs](/docs/ts/develop/api-schemas).
Learn more in the [API Schemas docs](/docs/ts/primitives/apis#api-schemas).

**Express.js**

Expand Down Expand Up @@ -456,7 +456,7 @@ like [Zod](https://github.com/colinhacks/zod).

With Encore.ts, request validation for headers, query params and body is. You supply a schema for the request object and
in the request payload does not match the schema the API will return a 400 error.
Learn more in our [API Schemas docs](/docs/ts/develop/api-schemas).
Learn more in the [API Schemas docs](/docs/ts/primitives/apis#api-schemas).

**Express.js**

Expand Down
2 changes: 1 addition & 1 deletion docs/how-to/migrate-away.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ In practise Encore is opinionated only in certain areas which are critical for e
## Accommodating for your unique requirements

Many software projects end up having a few novel requirements, which are highly specific to the problem domain. To accommodate for this, Encore is designed to let you go outside of the standardized Backend Framework when you need to, for example:
- You can drop down in abstraction level in the API framework using [raw endpoints](/docs/develop/api-schemas#raw-endpoints)
- You can drop down in abstraction level in the API framework using [raw endpoints](/docs/ts/primitives/apis#raw-endpoints)
- You can use tools like the [Terraform provider](/docs/deploy/terraform) to integrate infrastructure that is not managed by Encore

## Mitigating risk through Open Source and efficiency
Expand Down
2 changes: 1 addition & 1 deletion docs/observability/tracing.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ Encore's tracing automatically captures request and response payloads to simplif

For cases where this is undesirable, such as for passwords or personally identifiable information (PII), Encore supports redacting fields marked as containing sensitive data.

See the documentation on [API Schemas](/docs/develop/api-schemas#sensitive-data) for more information.
See the documentation on [API Schemas](/docs/primitives/apis#sensitive-data) for more information.
2 changes: 1 addition & 1 deletion docs/tutorials/booking-system.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ func Book(ctx context.Context, p *BookParams) error {

We are now using the generated type-safe `query.InsertBooking` function to make the database operation.

Notice the `encore:"sensitive"` tag on the `Email` field. This tells Encore to scrub this field so that the data is not viewable in the traces for deployed environments. This is useful for fields that contain [sensitive data](/docs/develop/api-schemas#sensitive-data) such as email addresses, passwords, etc.
Notice the `encore:"sensitive"` tag on the `Email` field. This tells Encore to scrub this field so that the data is not viewable in the traces for deployed environments. This is useful for fields that contain [sensitive data](/docs/primitives/apis#sensitive-data) such as email addresses, passwords, etc.

🥐 Restart `encore run` to cause the database to be created, and then call the `booking.Book` endpoint:

Expand Down

0 comments on commit 05a0c60

Please sign in to comment.