# templately/trunk/modules/workspaces/module.php

Templately – Elementor &amp; Gutenberg Template Library: 6500+ Free &amp; Pro Ready Templates And Cloud!, version trunk. 39 lines.

- Page: https://pluginprobe.com/plugins/templately/trunk/code/modules/workspaces/module.php
- Raw: https://pluginprobe.com/plugins/templately/trunk/raw/modules/workspaces/module.php
- Modified: 2026-09-24T05:45:44+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/templately/trunk/code/modules/workspaces/module.php#L10-L20`.

```php
<?php
/**
 * Workspaces module (spec 030-workspaces).
 *
 * Collaborative workspaces: CRUD, sharing/membership, browsing, the workspace
 * switcher, and workspace-scoped file operations (add/delete). Relocated
 * verbatim from includes/API/WorkSpaces.php — behavior byte-identical (same
 * routes, params, permission logic).
 *
 * SCOPE NOTE: copy/move of a personal-cloud file into a workspace, and
 * delete/download of a personal-cloud file, are served by modules/my-cloud's
 * (spec 028) endpoints — this module does not duplicate that surface (see
 * spec.md's Ownership & Artifacts section). The genuinely-shared UI consumed
 * by both this module and modules/my-cloud (CloudsLayout, Actions,
 * ViewButtons, ContextMenu, CloudFileName, CloudSidebar, the multi-source
 * Add-File/CopyMove/DeleteFile modals, and the mixed clouds+workspace redux
 * actions/saga files) intentionally stays in react-src/ rather than being
 * force-owned by either module. See this module's assets/js/CLAUDE.md and
 * data-model.md's "Module Home" section for the full boundary reasoning.
 *
 * @package Templately
 */

namespace Templately\Modules\Workspaces;

use Templately\Core\Module_Base;
use Templately\Modules\Workspaces\REST\WorkSpaces;

class Module extends Module_Base {

	public function get_name(): string {
		return 'workspaces';
	}

	public function register_rest_routes(): void {
		WorkSpaces::get_instance()->register_routes();
	}
}

```
