Updated method name called json to be called fetchgraph. Updated the routes file with change as well.