List existing organisations
This commit is contained in:
24
routes/organisations.php
Normal file
24
routes/organisations.php
Normal 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
|
||||
Reference in New Issue
Block a user