Skip to content
Snippets Groups Projects
Commit d22744b3 authored by user's avatar user
Browse files

change maintenance options into get reuqests

parent 83099371
Branches
No related tags found
No related merge requests found
...@@ -221,11 +221,11 @@ def check_systems(db: Session = Depends(get_db)): ...@@ -221,11 +221,11 @@ def check_systems(db: Session = Depends(get_db)):
return status(db) return status(db)
@app.delete("/maintenance/clear_session_artifacts") @app.get("/maintenance/clear_session_artifacts")
def clear_session_db_and_remove_files(hash: str, db: Session = Depends(get_db)): def clear_session_db_and_remove_files(hash: str, db: Session = Depends(get_db)):
return crud.delete_cocal_session_by_hash(db, hash) return crud.delete_cocal_session_by_hash(db, hash)
@app.delete("/maintenance/clear_all_sessions") @app.get("/maintenance/clear_all_sessions")
def clear_ALL_sessions(db: Session = Depends(get_db)): def clear_ALL_sessions(db: Session = Depends(get_db)):
return crud.delete_all_cocal_sessions(db) return crud.delete_all_cocal_sessions(db)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment