Commit 9c8cf9c
fix(packages): register PATCH /packages/:id so edit-manifest reaches the handler (#2995)
handlePackages has handled `PATCH /packages/:id` (edit a package's name /
description / version) all along, but the route was never mounted in
dispatcher-plugin — only GET/DELETE `/:id` and PATCH `/:id/enable|disable`
were. So `PATCH /packages/:id` 405'd over HTTP and the Studio "edit package"
form silently failed (surfaced dogfooding the builder header refresh).
Register the missing route, mirroring the GET/DELETE `/:id` handlers. `/:id`
is a single path segment, so it does not shadow the `/:id/enable|disable`
routes. Adds a route-registration regression test (same class as the /ready
seam bug, #2217).
Co-authored-by: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent e1484bc commit 9c8cf9c
2 files changed
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
76 | 92 | | |
77 | 93 | | |
78 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
721 | 721 | | |
722 | 722 | | |
723 | 723 | | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
724 | 738 | | |
725 | 739 | | |
726 | 740 | | |
| |||
0 commit comments