Skip to content

Commit

Permalink
#22 added the graph endpoint (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanDVG authored Feb 18, 2025
1 parent d1f25b6 commit e7a4fed
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/routers/graphs.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
from fastapi import APIRouter
from ..submodules.jp_qcew.src.visualization.graph import graphGenerator

router = APIRouter()


@router.get("/graph/tmp")
async def get_trade_file():
return {"This has not been implemented yet"}
async def get_trade_file(
naics_code : str
):
graph = graphGenerator().create_graph(naics_code)
return graph.to_json()

0 comments on commit e7a4fed

Please sign in to comment.