Create organisation functionality

This commit is contained in:
2022-02-04 11:23:48 +00:00
parent 584aa1909e
commit f850e4cace
11 changed files with 346 additions and 1 deletions

View File

@@ -19,6 +19,13 @@ $app->group('/organisations', function () {
$app->group('/api/organisations', function () {
$this->get('', 'UserFrosting\Sprinkle\Organisations\Controller\OrganisationController:getList');
$this->post('', 'UserFrosting\Sprinkle\Organisations\Controller\OrganisationController:create');
})->add('authGuard')->add(new NoCache());
// TODO: add route for accepting members
$app->group('/modals/organisations', function () {
$this->get('/create', 'UserFrosting\Sprinkle\Organisations\Controller\OrganisationController:getModalCreate');
})->add('authGuard')->add(new NoCache());
// TODO: add route for accepting members
// TODO: add route for verifying organisations