增加robots.txt文件预防爬虫
This commit is contained in:
9
api/callback/v1/robots.go
Normal file
9
api/callback/v1/robots.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package v1
|
||||
|
||||
import "github.com/gogf/gf/v2/frame/g"
|
||||
|
||||
type RobotsReq struct {
|
||||
g.Meta `path:"/robots.txt" tags:"回调响应" method:"get" summary:"禁止爬虫"`
|
||||
}
|
||||
type RobotsRes struct {
|
||||
}
|
||||
Reference in New Issue
Block a user