Expand description
Admin API endpoints for route CRUD. Mutations rewrite the in-memory
gateway config and trigger validation + graph recompilation via
SharedState::reload.
Functionsยง
- create_
route ๐ POST /api/routesโ creates a new route from the JSON body, then revalidates and recompiles all route graphs. Returns201 Createdwith{"status": "created"}on success.- delete_
route ๐ DELETE /api/routes/{name}โ removes the named route, then revalidates and recompiles. Returns{"status": "deleted"}on success.- get_
route ๐ GET /api/routes/{name}โ returns the named route as JSON.- list_
routes ๐ GET /api/routesโ returns all configured routes as a JSON array.- router
- Builds the router for the
/api/routesendpoints. - update_
route ๐ PUT /api/routes/{name}โ replaces the named route with the JSON body (the path name overrides any name in the body), then revalidates and recompiles. Returns{"status": "updated"}on success.