feat: 后端添加键值对存储支持。前端添加一个相应的插件

This commit is contained in:
539943419 committed 2025-04-01 20:19:32 +08:00
1 parent 6f42c634ff
commit d3e19d4855
9 files changed
+427 -19

No files matched your search

+5
View File
@@ -42,6 +42,11 @@ func main() {
// 添加获取所有可用地址的API
router.GET("/addresses", api.AddressesHandler(port))
// 添加map相关API
router.POST("/map/set/*key", api.MapSetHandler)
router.GET("/map/get/*key", api.MapGetHandler)
router.POST("/map/delete/*key", api.MapDeleteHandler)
// Redirect from '/' to '/web/'
router.GET("/", func(c *gin.Context) {
c.Redirect(http.StatusMovedPermanently, "/web/")