|
@@ -14,15 +14,15 @@ import { Topic } from "../types";
|
14
|
14
|
|
15
|
15
|
const AdviceListPage: React.FC = () => {
|
16
|
16
|
const { data: paternidad, error: paternidadError } = useSWR<Topic[]>(
|
17
|
|
- "/api/getTopicList/?type=advice&category=Paternidad",
|
|
17
|
+ "/api/getTopicList?type=advice&category=Paternidad",
|
18
|
18
|
fetcher
|
19
|
19
|
);
|
20
|
20
|
const { data: matrimonio, error: matrimonioError } = useSWR<Topic[]>(
|
21
|
|
- "/api/getTopicList/?type=advice&category=Matrimonio",
|
|
21
|
+ "/api/getTopicList?type=advice&category=Matrimonio",
|
22
|
22
|
fetcher
|
23
|
23
|
);
|
24
|
24
|
const { data: abuso, error: abusoError } = useSWR<Topic[]>(
|
25
|
|
- "/api/getTopicList/?type=advice&category=Abuso%20Sexual",
|
|
25
|
+ "/api/getTopicList?type=advice&category=Abuso%20Sexual",
|
26
|
26
|
fetcher
|
27
|
27
|
);
|
28
|
28
|
const error = paternidadError || matrimonioError || abusoError;
|