(pageUrl: string)
| 26 | private http = inject(HttpClient); |
| 27 | |
| 28 | revalidate(pageUrl: string) { |
| 29 | this.http |
| 30 | .post('/api/invalidate', { |
| 31 | token: 'MY_TOKEN', |
| 32 | urlsToInvalidate: [pageUrl], |
| 33 | }) |
| 34 | .subscribe((res) => { |
| 35 | console.log('invalidate', res); |
| 36 | }); |
| 37 | } |
| 38 | } |