Split organisation member management out of the organisation controller into a sub-controller

This commit is contained in:
bwilliams committed 2022-02-07 12:04:10 +00:00
1 parent feaf3d5813
commit ae0c884e44
4 files changed
+148 -56

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
<?php
/*
* AVSDev UF Organisations (https://avsdev.uk)
*
* @link https://git.avsdev.uk/avsdev/sprinkle-organisations
* @license https://git.avsdev.uk/avsdev/sprinkle-organisations/blob/master/LICENSE.md (LGPL-3.0 License)
*/
use UserFrosting\Sprinkle\Core\Util\NoCache;
/*
* Routes for administrative organisation member management.
*/
$app->group('/api/organisations/o/{slug}/members', function () {
$this->get('', 'UserFrosting\Sprinkle\Organisations\Controller\OrganisationMembersController:getList');
})->add('authGuard')->add(new NoCache());
-3
View File
@@ -31,9 +31,6 @@ $app->group('/api/organisations', function () {
$this->put('/o/{slug}', 'UserFrosting\Sprinkle\Organisations\Controller\OrganisationController:update');
$this->delete('/o/{slug}', 'UserFrosting\Sprinkle\Organisations\Controller\OrganisationController:delete');
$this->get('/o/{slug}/members', 'UserFrosting\Sprinkle\Organisations\Controller\OrganisationController:getMembers');
})->add('authGuard')->add(new NoCache());
$app->group('/modals/organisations', function () {