async fn create_route(
__arg0: State<Arc<SharedState>>,
__arg1: Json<RouteConfig>,
) -> impl IntoResponseExpand description
POST /api/routes — creates a new route from the JSON body, then
revalidates and recompiles all route graphs. Returns 201 Created with
{"status": "created"} on success.
Errors: 409 Conflict if a route with the same name already exists;
400 Bad Request if the resulting configuration fails
validation/recompilation (the previous compiled routes stay active).