agent update!
This commit is contained in:
@@ -160,6 +160,14 @@ export function createBridgeApi(config: AgentConfig): Hono {
|
||||
}
|
||||
});
|
||||
|
||||
app.post("/emergency-stop", async (c) => {
|
||||
try {
|
||||
return c.json(await bridgeJson(config, "/emergency_stop", { method: "POST" }));
|
||||
} catch (error) {
|
||||
return errorJson(error, "Failed to emergency stop robot.");
|
||||
}
|
||||
});
|
||||
|
||||
app.post("/reset", async (c) => {
|
||||
try {
|
||||
return c.json(await bridgeJson(config, "/reset", { method: "POST" }));
|
||||
|
||||
Reference in New Issue
Block a user