...
|
...
|
@@ -2,8 +2,10 @@ package routers |
|
|
|
|
|
import (
|
|
|
"ability/controllers/v1"
|
|
|
"ability/services/websocket"
|
|
|
"github.com/astaxie/beego"
|
|
|
"github.com/prometheus/client_golang/prometheus/promhttp"
|
|
|
"net/http"
|
|
|
)
|
|
|
|
|
|
var nsV1 *beego.Namespace
|
...
|
...
|
@@ -17,4 +19,5 @@ func init() { |
|
|
beego.AddNamespace(nsV1)
|
|
|
beego.SetStaticPath("/file/ab", beego.AppConfig.String("source_path"))
|
|
|
beego.Handler("/metrics", promhttp.Handler())
|
|
|
beego.Handler("/upgrage",http.HandlerFunc(websocket.Upgrage))
|
|
|
} |
...
|
...
|
|