mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
code cleanup
This commit is contained in:
@@ -17,4 +17,5 @@ require (
|
||||
github.com/smartystreets/goconvey v0.0.0-20190731233626-505e41936337
|
||||
github.com/spf13/viper v1.4.0
|
||||
gopkg.in/go-playground/validator.v9 v9.29.1
|
||||
gopkg.in/yaml.v2 v2.2.2
|
||||
)
|
||||
|
||||
@@ -110,7 +110,6 @@ func main() {
|
||||
if model.IsMaster() {
|
||||
// 中间件
|
||||
app.Use(middlewares.CORSMiddleware())
|
||||
//app.Use(middlewares.AuthorizationMiddleware())
|
||||
anonymousGroup := app.Group("/")
|
||||
{
|
||||
anonymousGroup.POST("/login", routes.Login) // 用户登录
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
version: 0.4.0
|
||||
startUrl: "https://baidu.com/s?wd=crawlab"
|
||||
start_url: "https://baidu.com/s?wd=crawlab"
|
||||
stages:
|
||||
stage1:
|
||||
list: false # default: false
|
||||
css: "#content_left > .result"
|
||||
list_css: "#content_left > .result"
|
||||
fields:
|
||||
- name: "title"
|
||||
css: "a"
|
||||
|
||||
Reference in New Issue
Block a user