# extendify/3.2.3/src/Agent/workflows/settings/tools/update-search-indexing.js

Extendify, version 3.2.3. 15 lines.

- Page: https://pluginprobe.com/plugins/extendify/3.2.3/code/src/Agent/workflows/settings/tools/update-search-indexing.js
- Raw: https://pluginprobe.com/plugins/extendify/3.2.3/raw/src/Agent/workflows/settings/tools/update-search-indexing.js
- Modified: 2026-10-08T17:02:48+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/extendify/3.2.3/code/src/Agent/workflows/settings/tools/update-search-indexing.js#L10-L20`.

```javascript
import apiFetch from '@wordpress/api-fetch';

const routes = {
	enabled: '/extendify/v1/search-indexing/enable',
	disabled: '/extendify/v1/search-indexing/disable',
};

export default async ({ indexing }) => {
	const path = routes[indexing];
	if (!path) {
		throw new Error('Indexing not allowed');
	}
	return await apiFetch({ path, method: 'POST' });
};

```
