mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-02 12:05:54 +00:00
22 lines
464 B
Python
22 lines
464 B
Python
from __future__ import annotations
|
|
|
|
import traceback
|
|
|
|
import quart
|
|
|
|
from .....core import app
|
|
from .. import group
|
|
|
|
|
|
@group.group_class('log', '/api/v1/log')
|
|
class LogRouterGroup(group.RouterGroup):
|
|
|
|
async def initialize(self) -> None:
|
|
@self.route('', methods=['GET'])
|
|
async def _() -> str:
|
|
return self.success(
|
|
data={
|
|
"logs": self.ap.log_cache.get_all_logs()
|
|
}
|
|
)
|