feat: 后端添加键值对存储支持。前端添加一个相应的插件
This commit is contained in:
1 parent
6f42c634ff
commit
d3e19d4855
9 files changed
+427
-19
No files matched your search
@@ -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/")
|
||||
|
||||
Reference in new issue
Block a user