GET
get<T>(path: string, revalidate?: number): Promise<T>
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| path | string | Sí | Ruta del endpoint. |
| revalidate | number | No | Segundos antes de revalidar caché. |
get<T>(path: string, revalidate?: number): Promise<T>
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| path | string | Sí | Ruta del endpoint. |
| revalidate | number | No | Segundos antes de revalidar caché. |