Commit c9355592 authored by gaoshiyao's avatar gaoshiyao

更新路由设置

parent 0689224b
......@@ -16,6 +16,7 @@ package router
import (
"github.com/gin-gonic/gin"
"gitlab.wodcloud.com/apaas/apaas-meshproxy/src/config"
"gitlab.wodcloud.com/apaas/apaas-meshproxy/src/handler"
"gitlab.wodcloud.com/apaas/apaas-meshproxy/src/router/middleware/header"
"net/http"
......@@ -28,7 +29,7 @@ func Load(middleware ...gin.HandlerFunc) http.Handler {
e.Use(header.Options)
e.Use(header.Secure)
e.Use(middleware...)
root := e.Group("")
root := e.Group(config.Prefix)
{
root.GET("/count", handler.GetCount)
root.Any("/proxy/*action", handler.Proxy)
......
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