添加静态目录

pull/1/head
Doflatango 2017-01-10 11:03:03 +08:00 committed by miraclesu
parent 45e7a8b1f5
commit 52457b6104
4 changed files with 10596 additions and 0 deletions

View File

@ -41,6 +41,8 @@ func InitRouters() (s *http.Server, err error) {
h = BaseHandler{Handle: nodeLeaveGroup}
subrouter.Handle("/node/group", h).Methods("DELETE")
subrouter.Handle("/ui", http.FileServer(http.Dir(conf.Config.Web.UIDir)))
s = &http.Server{
Handler: r,
}

12
web/ui/index.html Normal file
View File

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Cronsun</title>
<script src="/src/vendors/vue.js"></script>
<script src="/src/vendors/vue-router.js"></script>
</head>
<body>
</body>
</html>

2067
web/ui/vendors/vue-router.js vendored Normal file

File diff suppressed because it is too large Load Diff

8515
web/ui/vendors/vue.js vendored Normal file

File diff suppressed because it is too large Load Diff