|
2 | 2 | "id": "com.paca.checklist", |
3 | 3 | "displayName": "Checklist", |
4 | 4 | "description": "Adds named checklists with checkable items to tasks.", |
5 | | - "version": "0.2.1", |
| 5 | + "version": "0.2.2", |
6 | 6 | "permissions": ["db.read", "db.write", "events.subscribe"], |
7 | 7 | "backend": { |
8 | 8 | "eventSubscriptions": ["task.deleted"], |
9 | 9 | "routes": [ |
10 | | - { "method": "GET", "path": "/tasks/:taskId/checklists" }, |
11 | | - { "method": "POST", "path": "/tasks/:taskId/checklists" }, |
12 | | - { "method": "PATCH", "path": "/tasks/:taskId/checklists/:checklistId" }, |
13 | | - { "method": "DELETE", "path": "/tasks/:taskId/checklists/:checklistId" }, |
14 | | - { "method": "POST", "path": "/tasks/:taskId/checklists/:checklistId/items" }, |
15 | | - { "method": "PATCH", "path": "/tasks/:taskId/checklists/:checklistId/items/:itemId" }, |
16 | | - { "method": "DELETE", "path": "/tasks/:taskId/checklists/:checklistId/items/:itemId" } |
| 10 | + { |
| 11 | + "method": "GET", |
| 12 | + "path": "/tasks/:taskId/checklists", |
| 13 | + "middlewares": [ |
| 14 | + { "name": "optionalAuthn" }, |
| 15 | + { "name": "requireFreshPassword" }, |
| 16 | + { |
| 17 | + "name": "requirePermissions", |
| 18 | + "scope": "project", |
| 19 | + "permissions": ["tasks.read"] |
| 20 | + } |
| 21 | + ] |
| 22 | + }, |
| 23 | + { |
| 24 | + "method": "POST", |
| 25 | + "path": "/tasks/:taskId/checklists", |
| 26 | + "middlewares": [ |
| 27 | + { "name": "optionalAuthn" }, |
| 28 | + { "name": "requireFreshPassword" }, |
| 29 | + { |
| 30 | + "name": "requirePermissions", |
| 31 | + "scope": "project", |
| 32 | + "permissions": ["tasks.write"] |
| 33 | + } |
| 34 | + ] |
| 35 | + }, |
| 36 | + { |
| 37 | + "method": "PATCH", |
| 38 | + "path": "/tasks/:taskId/checklists/:checklistId", |
| 39 | + "middlewares": [ |
| 40 | + { "name": "optionalAuthn" }, |
| 41 | + { "name": "requireFreshPassword" }, |
| 42 | + { |
| 43 | + "name": "requirePermissions", |
| 44 | + "scope": "project", |
| 45 | + "permissions": ["tasks.write"] |
| 46 | + } |
| 47 | + ] |
| 48 | + }, |
| 49 | + { |
| 50 | + "method": "DELETE", |
| 51 | + "path": "/tasks/:taskId/checklists/:checklistId", |
| 52 | + "middlewares": [ |
| 53 | + { "name": "optionalAuthn" }, |
| 54 | + { "name": "requireFreshPassword" }, |
| 55 | + { |
| 56 | + "name": "requirePermissions", |
| 57 | + "scope": "project", |
| 58 | + "permissions": ["tasks.write"] |
| 59 | + } |
| 60 | + ] |
| 61 | + }, |
| 62 | + { |
| 63 | + "method": "POST", |
| 64 | + "path": "/tasks/:taskId/checklists/:checklistId/items", |
| 65 | + "middlewares": [ |
| 66 | + { "name": "optionalAuthn" }, |
| 67 | + { "name": "requireFreshPassword" }, |
| 68 | + { |
| 69 | + "name": "requirePermissions", |
| 70 | + "scope": "project", |
| 71 | + "permissions": ["tasks.write"] |
| 72 | + } |
| 73 | + ] |
| 74 | + }, |
| 75 | + { |
| 76 | + "method": "PATCH", |
| 77 | + "path": "/tasks/:taskId/checklists/:checklistId/items/:itemId", |
| 78 | + "middlewares": [ |
| 79 | + { "name": "optionalAuthn" }, |
| 80 | + { "name": "requireFreshPassword" }, |
| 81 | + { |
| 82 | + "name": "requirePermissions", |
| 83 | + "scope": "project", |
| 84 | + "permissions": ["tasks.write"] |
| 85 | + } |
| 86 | + ] |
| 87 | + }, |
| 88 | + { |
| 89 | + "method": "DELETE", |
| 90 | + "path": "/tasks/:taskId/checklists/:checklistId/items/:itemId", |
| 91 | + "middlewares": [ |
| 92 | + { "name": "optionalAuthn" }, |
| 93 | + { "name": "requireFreshPassword" }, |
| 94 | + { |
| 95 | + "name": "requirePermissions", |
| 96 | + "scope": "project", |
| 97 | + "permissions": ["tasks.write"] |
| 98 | + } |
| 99 | + ] |
| 100 | + } |
17 | 101 | ] |
18 | 102 | }, |
19 | 103 | "frontend": { |
|
0 commit comments