Fix axum route syntax (:id instead of {id})
- Routes now work correctly in axum 0.7 - Tested end-to-end: agent successfully creates files via LLM tool calls
This commit is contained in:
@@ -44,8 +44,8 @@ pub async fn serve(config: Config) -> anyhow::Result<()> {
|
||||
let app = Router::new()
|
||||
.route("/api/health", get(health))
|
||||
.route("/api/task", post(create_task))
|
||||
.route("/api/task/{id}", get(get_task))
|
||||
.route("/api/task/{id}/stream", get(stream_task))
|
||||
.route("/api/task/:id", get(get_task))
|
||||
.route("/api/task/:id/stream", get(stream_task))
|
||||
.layer(CorsLayer::permissive())
|
||||
.layer(TraceLayer::new_for_http())
|
||||
.with_state(state);
|
||||
|
||||
1
test_workspace/hello.py
Normal file
1
test_workspace/hello.py
Normal file
@@ -0,0 +1 @@
|
||||
print("Hello World")
|
||||
Reference in New Issue
Block a user