| @@ -4,9 +4,9 @@ | ||
| 4 | 4 | await apiFetch({ path: 'extendify/v1/auto-launch/prefetch-assist-data' }); |
| 5 | 5 | |
| 6 | 6 | export const postLaunchFunctions = () => |
| 7 | 7 | apiFetch({ |
| 8 | - path: '/extendify/v1/launch/post-launch-functions', | |
| 8 | + path: '/extendify/v1/auto-launch/post-launch-functions', | |
| 9 | 9 | method: 'POST', |
| 10 | 10 | }); |
| 11 | 11 | |
| 12 | 12 | export const preLaunchFunctions = () => |
| @@ -12,5 +12,25 @@ | ||
| 12 | 12 | export const preLaunchFunctions = () => |
| 13 | 13 | apiFetch({ |
| 14 | 14 | path: '/extendify/v1/auto-launch/pre-launch-functions', |
| 15 | 15 | method: 'POST', |
| 16 | + }); | |
| 17 | + | |
| 18 | +export const resetLaunchState = () => | |
| 19 | + apiFetch({ | |
| 20 | + path: '/extendify/v1/auto-launch/reset-launch-state', | |
| 21 | + method: 'POST', | |
| 22 | + }); | |
| 23 | + | |
| 24 | +export const runUpdates = () => | |
| 25 | + apiFetch({ | |
| 26 | + path: '/extendify/v1/auto-launch/run-updates', | |
| 27 | + method: 'POST', | |
| 28 | + }); | |
| 29 | + | |
| 30 | +export const forceReinstallPlugin = (slug) => | |
| 31 | + apiFetch({ | |
| 32 | + path: '/wp/v2/plugins', | |
| 33 | + method: 'POST', | |
| 34 | + headers: { 'X-Extendify-Force-Reinstall': '1' }, | |
| 35 | + data: { slug }, | |
| 16 | 36 | }); |