delete /api/transfer/v2
This commit is contained in:
parent
2a79303241
commit
f5d050f3f2
|
@ -12,10 +12,6 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func QueryData(c *gin.Context) {
|
func QueryData(c *gin.Context) {
|
||||||
// TODO 这里要改成老版本的实现
|
|
||||||
}
|
|
||||||
|
|
||||||
func QueryDataV2(c *gin.Context) {
|
|
||||||
stats.Counter.Set("data.api.qp10s", 1)
|
stats.Counter.Set("data.api.qp10s", 1)
|
||||||
|
|
||||||
dataSource, err := backend.GetDataSourceFor("")
|
dataSource, err := backend.GetDataSourceFor("")
|
||||||
|
|
|
@ -30,10 +30,5 @@ func Config(r *gin.Engine) {
|
||||||
index.POST("/counter/fullmatch", GetIndexByFullTags)
|
index.POST("/counter/fullmatch", GetIndexByFullTags)
|
||||||
}
|
}
|
||||||
|
|
||||||
v2 := r.Group("/api/transfer/v2")
|
|
||||||
{
|
|
||||||
v2.POST("/data", QueryDataV2)
|
|
||||||
}
|
|
||||||
|
|
||||||
pprof.Register(r, "/api/transfer/debug/pprof")
|
pprof.Register(r, "/api/transfer/debug/pprof")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue