Commit 3ebbcbf
fix(api): use DELETE on schedule resource with no request body
Delete schedule is a body-less resource deletion — wire it as DELETE
on the schedule route instead of POST on a separate /delete action path.
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 7b4549a commit 3ebbcbf
5 files changed
Lines changed: 15 additions & 62 deletions
File tree
- src
- app/api/domains/[domain]/[cluster]/schedules/[scheduleId]
- (actions)/delete
- route-handlers/delete-schedule
- __tests__
- schemas
Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
Lines changed: 1 addition & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | 27 | | |
37 | 28 | | |
38 | 29 | | |
| |||
78 | 69 | | |
79 | 70 | | |
80 | 71 | | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | 72 | | |
91 | 73 | | |
92 | 74 | | |
93 | | - | |
94 | 75 | | |
95 | 76 | | |
96 | 77 | | |
97 | | - | |
98 | 78 | | |
99 | 79 | | |
100 | 80 | | |
| |||
108 | 88 | | |
109 | 89 | | |
110 | 90 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
| 91 | + | |
115 | 92 | | |
116 | 93 | | |
117 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | | - | |
| 13 | + | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | 17 | | |
32 | 18 | | |
33 | 19 | | |
| |||
Lines changed: 0 additions & 5 deletions
This file was deleted.
0 commit comments