fix: 接口需要登录认证
This commit is contained in:
@@ -80,10 +80,10 @@ func Routers() []services.RouterItem {
|
||||
Middleware: midware.Authorize(nil),
|
||||
},
|
||||
{
|
||||
Method: "POST",
|
||||
Pattern: "/authExport",
|
||||
Handler: apis.UdmAuthUserExport,
|
||||
// Middleware: midware.Authorize(nil),
|
||||
Method: "POST",
|
||||
Pattern: "/authExport",
|
||||
Handler: apis.UdmAuthUserExport,
|
||||
Middleware: midware.Authorize(nil),
|
||||
},
|
||||
{
|
||||
Method: "POST",
|
||||
|
||||
@@ -240,11 +240,11 @@ func init() {
|
||||
Register("DELETE", trace.CustomUriTraceTask, trace.DeleteTraceTaskToNF, nil)
|
||||
|
||||
// 网元发送执行 pcap抓包
|
||||
Register("POST", trace.UriTcpdumpTask, trace.TcpdumpNeTask, nil)
|
||||
Register("POST", trace.CustomUriTcpdumpTask, trace.TcpdumpNeTask, nil)
|
||||
Register("POST", trace.UriTcpdumpTask, trace.TcpdumpNeTask, midware.Authorize(nil))
|
||||
Register("POST", trace.CustomUriTcpdumpTask, trace.TcpdumpNeTask, midware.Authorize(nil))
|
||||
// 网元发送执行 抓包下载pcap文件
|
||||
Register("POST", trace.UriTcpdumpPcapDownload, trace.TcpdumpPcapDownload, nil)
|
||||
Register("POST", trace.CustomUriTcpdumpPcapDownload, trace.TcpdumpPcapDownload, nil)
|
||||
Register("POST", trace.UriTcpdumpPcapDownload, trace.TcpdumpPcapDownload, midware.Authorize(nil))
|
||||
Register("POST", trace.CustomUriTcpdumpPcapDownload, trace.TcpdumpPcapDownload, midware.Authorize(nil))
|
||||
|
||||
// file management
|
||||
Register("POST", file.UriFile, file.UploadFile, nil)
|
||||
|
||||
Reference in New Issue
Block a user