aboutsummaryrefslogtreecommitdiff
path: root/assets.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-02-17 09:18:21 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-02-17 09:18:21 +0100
commitbd049da29ca30d23a2702adeeca3f2a3afe58b7e (patch)
tree3a84dfaeaa8b88012d20492eb11d39d95d8fce7f /assets.go
parent5196a3660309865635c6d9607e3628f1826851b0 (diff)
Selfhosted fonts
Diffstat (limited to 'assets.go')
-rw-r--r--assets.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/assets.go b/assets.go
new file mode 100644
index 0000000..0905228
--- /dev/null
+++ b/assets.go
@@ -0,0 +1,8 @@
+package main
+
+import "net/http"
+
+func init() {
+ http.Handle("/css/", http.FileServer(http.Dir("assets")))
+ http.Handle("/fonts/", http.FileServer(http.Dir("assets")))
+}