fix: change MultiHandler back to Handlers (#1396)

This commit is contained in:
Marvin Hagemeister
2023-07-03 09:57:46 +02:00
committed by GitHub
parent eb53d53ab8
commit 16be99e69b
32 changed files with 135 additions and 66 deletions
+2 -2
View File
@@ -32,7 +32,7 @@ server side:
```tsx
// routes/search.tsx
import { MultiHandler, PageProps } from "$fresh/server.ts";
import { Handlers, PageProps } from "$fresh/server.ts";
const NAMES = ["Alice", "Bob", "Charlie", "Dave", "Eve", "Frank"];
@@ -41,7 +41,7 @@ interface Data {
query: string;
}
export const handler: MultiHandler<Data> = {
export const handler: Handlers<Data> = {
GET(req, ctx) {
const url = new URL(req.url);
const query = url.searchParams.get("q") || "";