Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e5e9e5f494 |
+8
-2
@@ -2,14 +2,20 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
|
||||||
|
"github.com/elazarl/go-bindata-assetfs"
|
||||||
|
"mcquay.me/web"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
http.Handle(
|
http.Handle(
|
||||||
"/",
|
"/",
|
||||||
http.FileServer(
|
http.FileServer(
|
||||||
http.Dir(os.Getenv("SM_STATIC")),
|
&assetfs.AssetFS{
|
||||||
|
Asset: web.Asset,
|
||||||
|
AssetDir: web.AssetDir,
|
||||||
|
Prefix: "static",
|
||||||
|
},
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
if err := http.ListenAndServe(":8000", nil); err != nil {
|
if err := http.ListenAndServe(":8000", nil); err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user