subhdotsol commited on
Commit
7d5c46d
·
1 Parent(s): fc70913

feat(app): add GET /history endpoint — returns full attack_history list

Browse files
Files changed (1) hide show
  1. server/app.py +4 -0
server/app.py CHANGED
@@ -60,3 +60,7 @@ async def step_episode(action: AttackAction):
60
  @app.get("/state", response_model=EpisodeState)
61
  async def get_state():
62
  return env.get_state()
 
 
 
 
 
60
  @app.get("/state", response_model=EpisodeState)
61
  async def get_state():
62
  return env.get_state()
63
+
64
+ @app.get("/history")
65
+ async def get_history():
66
+ return {"history": env.get_history()}