From 53d80c839ad2aad0a0482ca43fca1fc3a95b9d1c Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期五, 03 十一月 2023 17:30:54 +0800
Subject: [PATCH] 更改路由
---
router/index.go | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/router/index.go b/router/index.go
index e0e357c..85bdfd2 100644
--- a/router/index.go
+++ b/router/index.go
@@ -71,8 +71,8 @@
deviceApi := new(v1.DeviceApi)
deviceGroup := v1Group.Group("device")
{
- deviceGroup.GET("list", deviceApi.DeviceList) // 鍙�夎澶囧垪琛�
- deviceGroup.GET("setCurrentDeviceId", deviceApi.SetCurrentDeviceId) // 鍒囨崲璁惧ID
+ deviceGroup.GET("list", deviceApi.DeviceList) // 鍙�夎澶囧垪琛�
+ deviceGroup.POST("setCurrentDeviceId", deviceApi.SetCurrentDeviceId) // 鍒囨崲璁惧ID
}
systemApi := new(v1.SystemApi)
--
Gitblit v1.8.0