docs: fix code snippet formatting (#1866)
This commit is contained in:
@@ -209,12 +209,11 @@ export function handler(req: Request): Response {
|
|||||||
`307` stands for temporary redirect. You can also use `301` for permanent
|
`307` stands for temporary redirect. You can also use `301` for permanent
|
||||||
redirect. You can also redirect to a relative path by doing:
|
redirect. You can also redirect to a relative path by doing:
|
||||||
|
|
||||||
````ts
|
```ts
|
||||||
export function handler(req: Request): Response {
|
export function handler(req: Request): Response {
|
||||||
return new Response("", {
|
return new Response("", {
|
||||||
status: 307,
|
status: 307,
|
||||||
headers: { Location: "/my/new/relative/path" },
|
headers: { Location: "/my/new/relative/path" },
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
```****
|
```
|
||||||
````
|
|
||||||
|
|||||||
Reference in New Issue
Block a user