chore: use api2 routers in main.go
This commit is contained in:
parent
debd5bc0a6
commit
5a6649e99c
2
main.go
2
main.go
@ -94,7 +94,7 @@ func main() {
|
|||||||
}))
|
}))
|
||||||
|
|
||||||
// 设置 API 路由
|
// 设置 API 路由
|
||||||
api.SetupRoutes(r)
|
api2.NewServer(device.NewDeviceManager()).SetupRoutes(r)
|
||||||
|
|
||||||
// 启动服务器
|
// 启动服务器
|
||||||
log.Printf("🌐 CAN 控制服务运行在 http://localhost:%s", config.Config.WebPort)
|
log.Printf("🌐 CAN 控制服务运行在 http://localhost:%s", config.Config.WebPort)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user