feat(settings): json 编辑器

This commit is contained in:
Junyan Qin
2024-10-15 14:23:56 +08:00
parent 7174742886
commit d52f9b9543
9 changed files with 113 additions and 13 deletions

View File

@@ -3,6 +3,7 @@ from __future__ import annotations
import asyncio
import quart
import quart_cors
from ....core import app
from .groups import logs, system, settings
@@ -18,6 +19,7 @@ class HTTPController:
def __init__(self, ap: app.Application) -> None:
self.ap = ap
self.quart_app = quart.Quart(__name__)
quart_cors.cors(self.quart_app, allow_origin='*')
async def initialize(self) -> None:
await self.register_routes()