Skip to content

Commit

Permalink
Update Glimps/main.py
Browse files Browse the repository at this point in the history
Co-authored-by: Sébastien Quioc <sebastien.quioc@sekoia.fr>
  • Loading branch information
2 people authored and glimps-glv committed Jan 21, 2025
1 parent dbe1161 commit 9b1118a
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions Glimps/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,16 @@
)

if __name__ == "__main__":
deprecated_module = Module()
deprecated_module.register(DeprecatedRetrieveAnalysis)
deprecated_module.register(DeprecatedSearchPreviousAnalysis)
deprecated_module.register(DeprecatedSubmitFileToBeAnalysed)
deprecated_module.run()

module = GLIMPSModule()
module.register(ExportSubmission)
module.register(SearchPreviousAnalysis)
module.register(WaitForFile)
module.register(SubmitFile)
module.register(GetStatus)
module.register(RetrieveAnalysis)
module.register(ExportSubmission, "ExportSubmission")
module.register(SearchPreviousAnalysis, "SearchPreviousAnalysis")
module.register(WaitForFile, "WaitForFile")
module.register(SubmitFile, "SubmitFile")
module.register(GetStatus, "GetStatus")
module.register(RetrieveAnalysis, "RetrieveAnalysis")

# register deprecated actions
deprecated_module.register(DeprecatedRetrieveAnalysis, "get-results/{uuid}")
deprecated_module.register(DeprecatedSearchPreviousAnalysis, "get-search/{sha256}")
deprecated_module.register(DeprecatedSubmitFileToBeAnalysed, "post-submit")
module.run()

0 comments on commit 9b1118a

Please sign in to comment.