feat: add Permission management UI and API endpoints (Closes #37) (#88)

This commit was merged in pull request #88.
This commit is contained in:
2026-04-07 13:26:09 +02:00
parent 4e2e7df51c
commit 45a479ad37
6 changed files with 708 additions and 0 deletions
+9
View File
@@ -60,5 +60,14 @@ return [
['name' => 'fee#batchCalculate', 'url' => '/api/v1/fees/batch-calculate', 'verb' => 'POST'],
['name' => 'fee#markPaid', 'url' => '/api/v1/fees/records/{recordId}/paid', 'verb' => 'PUT'],
['name' => 'fee#manualOverride', 'url' => '/api/v1/fees/records/{recordId}/override', 'verb' => 'PUT'],
// ── Permissions ─────────────────────────────────────────────
['name' => 'permission#index', 'url' => '/api/v1/permissions', 'verb' => 'GET'],
['name' => 'permission#listUsers', 'url' => '/api/v1/permissions/users', 'verb' => 'GET'],
['name' => 'permission#setPermission', 'url' => '/api/v1/permissions/{ncUserId}', 'verb' => 'PUT'],
['name' => 'permission#removePermission', 'url' => '/api/v1/permissions/{ncUserId}', 'verb' => 'DELETE'],
// ── Audit log ───────────────────────────────────────────────
['name' => 'audit#index', 'url' => '/api/v1/audit-log', 'verb' => 'GET'],
],
];