Skip to content

Commit 62b683d

Browse files
authored
Remove useless /actions/ endpoint (#70)
1 parent 51d99e4 commit 62b683d

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/jbi/router.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -93,17 +93,6 @@ def get_whiteboard_tag(
9393
return actions
9494

9595

96-
@api_router.get("/actions/")
97-
def get_actions_by_type(action_type: Optional[str] = None):
98-
"""API for viewing actions within the config; `action_type` matched on end of action identifier"""
99-
actions = configuration.get_actions_dict()
100-
if action_type:
101-
return [
102-
a["action"] for a in actions.values() if a["action"].endswith(action_type)
103-
]
104-
return [a["action"] for a in actions.values()]
105-
106-
10796
@api_router.get("/powered_by_jbi", response_class=HTMLResponse)
10897
def powered_by_jbi(request: Request, enabled: Optional[bool] = None):
10998
"""API for `Powered By` endpoint"""

0 commit comments

Comments
 (0)