Skip to content

Commit 0f826f7

Browse files
committed
Refactor code structure for improved readability and maintainability
1 parent 8022516 commit 0f826f7

2 files changed

Lines changed: 1855 additions & 183 deletions

File tree

docs/docs/languages/astro.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ All data must be available during the build process and can be supplied through
1616
const name = "LiveCodes";
1717
---
1818
<h1>Hello {name}!</h1>
19-
````
19+
```
2020

2121
---
2222

@@ -30,7 +30,7 @@ In this mode, values can be provided dynamically during request handling.
3030

3131
```js
3232
// src/pages/api/hello.js
33-
export async function get() {
33+
export async function GET() {
3434
return new Response(JSON.stringify({ name: 'LiveCodes' }), {
3535
headers: { 'Content-Type': 'application/json' },
3636
});

0 commit comments

Comments
 (0)