Skip to content

Commit 49f4173

Browse files
committed
add rate limit
1 parent 47d7778 commit 49f4173

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/routes/file_routes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,8 @@ def get_sankey_data_dict(emails):
238238

239239
return {"nodes": nodes, "links": filtered_links}
240240

241-
242241
@router.get("/get-sankey-data")
242+
@limiter.limit("2/minute")
243243
async def get_sankey_data(
244244
request: Request,
245245
db_session: database.DBSession,

0 commit comments

Comments
 (0)