chore: use api2 routers in main.go

This commit is contained in:
Eli Yip 2025-05-29 09:38:52 +08:00
parent debd5bc0a6
commit 5a6649e99c
No known key found for this signature in database
GPG Key ID: C98B69D4CF7D7EC5

View File

@ -94,7 +94,7 @@ func main() {
}))
// 设置 API 路由
api.SetupRoutes(r)
api2.NewServer(device.NewDeviceManager()).SetupRoutes(r)
// 启动服务器
log.Printf("🌐 CAN 控制服务运行在 http://localhost:%s", config.Config.WebPort)