Skip to content

Commit

Permalink
fix highlight numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
lauragift21 committed Mar 21, 2024
1 parent f1ccfce commit f040375
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions content/d1/tutorials/build-a-staff-directory-app/index.md
Expand Up @@ -281,8 +281,8 @@ The existing code within the file includes a placeholder that uses the Counter c

```ts
---
highlight: [2-4, 18-20]
filename: index.ts
highlight: [2-4, 19-21]
filename: index.tsx
---
import { createRoute } from 'honox/factory'
import type { FC } from 'hono/jsx'
Expand Down Expand Up @@ -330,10 +330,10 @@ The code snippet demonstrates how to import the `findAllEmployees`, `findAllLoca

Similarly, when setting up a route to add data to the database, for instance, allowing admins to create a new employee through the `/admin` page, you would follow the same approach but this time use the `export POST` route.

```tsx
```ts
---
highlight: 26
filename: admin/create.ts
filename: admin/create.tsx
---

import { createRoute } from 'honox/factory'
Expand Down Expand Up @@ -412,9 +412,9 @@ declare module 'hono' {

To store the uploaded image in the R2 bucket, you can use the `put` method provided by R2. This method allows you to upload the image file to your bucket.

```tsx
```ts
---
filename: admin/create.ts
filename: admin/create.tsx
---

if (imageFile instanceof File) {
Expand Down

0 comments on commit f040375

Please sign in to comment.