Commit 9760f193 authored by 张宇迪's avatar 张宇迪

修改字段过滤

parent fd4727d8
......@@ -22,7 +22,7 @@ pipeline:
- /var/run/docker.sock:/var/run/docker.sock
base: registry.cn-qingdao.aliyuncs.com/wod/alpine-glibc:3.8
repo: apaas/apaas-meshproxy
version: 3.0.3
version: 3.0.4
channel: alpha
registry: hub.wodcloud.com
secrets:
......
......@@ -17,7 +17,7 @@ import (
var Resp *http.Response
func Proxy(c *gin.Context) {
applyId := c.Query("applyId")
applyId := c.Param("applyId")
if applyId == "" {
res := model.WebRes{}
res.Data = "applyId不能为空"
......
......@@ -31,7 +31,7 @@ func Load(middleware ...gin.HandlerFunc) http.Handler {
e.Use(middleware...)
root := e.Group(config.Prefix)
{
root.Any("/proxy", handler.Proxy)
root.Any("/:svcId/:applyId", handler.Proxy)
}
e.GET("/health", handler.Health)
return e
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment