Skip to content
This repository has been archived by the owner on Jul 8, 2018. It is now read-only.

Commit

Permalink
ui part added
Browse files Browse the repository at this point in the history
  • Loading branch information
liuzl committed Jul 19, 2017
1 parent 3ab4f1f commit fef9ace
Show file tree
Hide file tree
Showing 37 changed files with 21,732 additions and 1 deletion.
1 change: 1 addition & 0 deletions crawlerd/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rice embed-go && go build
2 changes: 1 addition & 1 deletion crawlerd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func Web(ctl *controller.Controller, addr string) {
listHandler := handlers.NewListHandler(ctl)
router.Handle("/api/list/{type:seed|running|crontab|crawler}", listHandler)
http.Handle("/api/", router)
http.Handle("/", http.FileServer(rice.MustFindBox("http-files").HTTPBox()))
http.Handle("/", http.FileServer(rice.MustFindBox("ui").HTTPBox()))
http.ListenAndServe(addr, nil)
}

Expand Down
Loading

0 comments on commit fef9ace

Please sign in to comment.