mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-02 12:05:54 +00:00
20 lines
505 B
Python
20 lines
505 B
Python
import quart
|
|
|
|
from .....core import app
|
|
from .. import group
|
|
from .....utils import constants
|
|
|
|
|
|
@group.group_class('system', '/api/v1/system')
|
|
class SystemRouterGroup(group.RouterGroup):
|
|
|
|
async def initialize(self) -> None:
|
|
@self.route('/info', methods=['GET'])
|
|
async def _() -> str:
|
|
return self.success(
|
|
data={
|
|
"version": constants.semantic_version,
|
|
"debug": constants.debug_mode
|
|
}
|
|
)
|