mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-04-29 04:00:26 +00:00
BIG PYTHON REFACTOR
Python scripts moved out of python/ folder to root to be unified with plugins + frontend extension around api calls
This commit is contained in:
parent
f94b7d742c
commit
d02dda3667
326 changed files with 1096 additions and 862 deletions
|
|
@ -1,15 +0,0 @@
|
|||
from python.helpers.api import ApiHandler, Request, session
|
||||
|
||||
|
||||
class ApiLogout(ApiHandler):
|
||||
@classmethod
|
||||
def requires_auth(cls) -> bool:
|
||||
return False
|
||||
|
||||
async def process(self, input: dict, request: Request) -> dict:
|
||||
try:
|
||||
session.clear()
|
||||
except Exception:
|
||||
session.pop("authentication", None)
|
||||
session.pop("csrf_token", None)
|
||||
return {"ok": True}
|
||||
Loading…
Add table
Add a link
Reference in a new issue