fix: register PATCH on /api/apps/:id (JS was sending PATCH, route only had PUT)
https://claude.ai/code/session_01FKCW3FDjNFj6jve4niMFXH
This commit is contained in:
parent
4fb8c6b2c7
commit
def40aa7f9
1 changed files with 1 additions and 0 deletions
|
|
@ -164,6 +164,7 @@ async fn main() -> anyhow::Result<()> {
|
|||
.route("/api/apps", get(routes::apps::list).post(routes::apps::create))
|
||||
.route("/api/apps/:id", get(routes::apps::get_one)
|
||||
.put(routes::apps::update)
|
||||
.patch(routes::apps::update)
|
||||
.delete(routes::apps::delete))
|
||||
.route("/api/apps/:id/stop", post(routes::apps::stop))
|
||||
.route("/api/apps/:id/restart", post(routes::apps::restart))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue