mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-05 05:16:03 +00:00
refactor(box): unify box service lifecycle and local runtime
management
This commit is contained in:
@@ -13,7 +13,7 @@ class BoxRouterGroup(group.RouterGroup):
|
||||
|
||||
@self.route('/sessions', methods=['GET'], auth_type=group.AuthType.USER_TOKEN)
|
||||
async def _() -> str:
|
||||
sessions = self.ap.box_service.runtime.get_sessions()
|
||||
sessions = await self.ap.box_service.get_sessions()
|
||||
return self.success(data=sessions)
|
||||
|
||||
@self.route('/errors', methods=['GET'], auth_type=group.AuthType.USER_TOKEN)
|
||||
|
||||
Reference in New Issue
Block a user