Files
37duAutomation/desktop/controlplane/apis/meta.py
T
puddy 6d2dd93628 refactor: 整体迁移控制面至MySQL + 替换UI框架为Element Plus
1. 移除naive-ui依赖,迁移前端至Element Plus
2. 重构后端数据库层,切换为MySQL替代SQLite
3. 调整项目部署架构,停止exe打包改为源码部署
4. 新增设备上报接口与相关数据库模型
5. 优化配置路径与SQL语法,替换为MySQL占位符格式
6. 调整站点名称与文案,统一为「37du 插件管理平台」
7. 新增SQLite到MySQL迁移脚本
2026-09-16 15:58:45 +08:00

14 lines
332 B
Python

# -*- coding: utf-8 -*-
"""基础元信息路由:健康检查。"""
from __future__ import annotations
from fastapi import APIRouter
from controlplane import config
router = APIRouter()
@router.get("/health")
def health() -> dict:
return {"ok": True, "db": "mysql", "host": config.MYSQL_HOST, "database": config.MYSQL_DB}