mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-04-28 03:30:23 +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
13
api/settings_get.py
Normal file
13
api/settings_get.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
from helpers.api import ApiHandler, Request, Response
|
||||
|
||||
from helpers import settings
|
||||
|
||||
class GetSettings(ApiHandler):
|
||||
async def process(self, input: dict, request: Request) -> dict | Response:
|
||||
backend = settings.get_settings()
|
||||
out = settings.convert_out(backend)
|
||||
return dict(out)
|
||||
|
||||
@classmethod
|
||||
def get_methods(cls) -> list[str]:
|
||||
return ["GET", "POST"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue