aboutsummaryrefslogtreecommitdiff
path: root/static.go
diff options
context:
space:
mode:
Diffstat (limited to 'static.go')
-rw-r--r--static.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/static.go b/static.go
new file mode 100644
index 0000000..11f0fc6
--- /dev/null
+++ b/static.go
@@ -0,0 +1,8 @@
+package main
+
+import "net/http"
+
+func init() {
+ //http.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir("static"))))
+ http.Handle("/static/", http.FileServer(http.Dir("assets")))
+}