Skip to main content

delete_route

Function delete_route 

Source
async fn delete_route(
    __arg0: State<Arc<SharedState>>,
    __arg1: Path<String>,
) -> impl IntoResponse
Expand description

DELETE /api/routes/{name} — removes the named route, then revalidates and recompiles. Returns {"status": "deleted"} on success.

Errors: 404 Not Found if the route does not exist; 400 Bad Request if recompilation fails.