projects
/
quanweb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add basic html/js to search for and display some books.
[quanweb.git]
/
main
/
main.go
diff --git
a/main/main.go
b/main/main.go
index 99c09a08abf0b1c88a77efe08e3fa4c221e15edf..d30f84b9e76138b41883797c91cb474d5761b786 100644
(file)
--- a/
main/main.go
+++ b/
main/main.go
@@
-12,6
+12,10
@@
func main() {
var b sql.NullString
nsVal(b)
+ fs := http.FileServer(http.Dir("../app"))
+ http.Handle("/app/", http.StripPrefix("/app", fs))
+
http.HandleFunc("/", handler)
+
http.ListenAndServe(":8001", nil)
}