Delete organisation functionality

This commit is contained in:
2022-02-04 11:42:43 +00:00
parent f850e4cace
commit 2cf2777494
9 changed files with 251 additions and 4 deletions

View File

@@ -18,14 +18,18 @@ $app->group('/organisations', function () {
})->add('authGuard')->add(new NoCache());
$app->group('/api/organisations', function () {
$this->delete('/o/{slug}', 'UserFrosting\Sprinkle\Organisations\Controller\OrganisationController:delete');
$this->get('', 'UserFrosting\Sprinkle\Organisations\Controller\OrganisationController:getList');
$this->post('', 'UserFrosting\Sprinkle\Organisations\Controller\OrganisationController:create');
})->add('authGuard')->add(new NoCache());
$app->group('/modals/organisations', function () {
$this->get('/confirm-delete', 'UserFrosting\Sprinkle\Organisations\Controller\OrganisationController:getModalConfirmDelete');
$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
// TODO: add route for verifying organisations