move api_graph_controller to api_frontend module