chore: remove unused stuff
This commit is contained in:
4
main.py
4
main.py
@@ -80,7 +80,7 @@ team_router.add_api_route("/list", endpoint=list_teams, methods=["GET"])
|
||||
team_router.add_api_route("/add", endpoint=add_team, methods=["POST"])
|
||||
|
||||
|
||||
@api_router.post("/mvps")
|
||||
@api_router.post("/mvps", dependencies=[Depends(get_current_active_user)])
|
||||
def submit_mvps(mvps: MVPRanking):
|
||||
with Session(engine) as session:
|
||||
session.add(mvps)
|
||||
@@ -88,7 +88,7 @@ def submit_mvps(mvps: MVPRanking):
|
||||
return JSONResponse("success!")
|
||||
|
||||
|
||||
@api_router.post("/chemistry")
|
||||
@api_router.post("/chemistry", dependencies=[Depends(get_current_active_user)])
|
||||
def submit_chemistry(chemistry: Chemistry):
|
||||
with Session(engine) as session:
|
||||
session.add(chemistry)
|
||||
|
||||
Reference in New Issue
Block a user