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