List existing organisations

This commit is contained in:
2022-01-21 10:56:43 +00:00
parent c26c65fa8c
commit 584aa1909e
13 changed files with 613 additions and 0 deletions

24
routes/organisations.php Normal file
View File

@@ -0,0 +1,24 @@
<?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 management.
*/
$app->group('/organisations', function () {
$this->get('', 'UserFrosting\Sprinkle\Organisations\Controller\OrganisationController:pageList')
->setName('uri_organisations');
})->add('authGuard')->add(new NoCache());
$app->group('/api/organisations', function () {
$this->get('', 'UserFrosting\Sprinkle\Organisations\Controller\OrganisationController:getList');
})->add('authGuard')->add(new NoCache());
// TODO: add route for accepting members