Compare commits
1
Commits
simple
..
static-dir
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
31cd542929 |
+5
-2
@@ -1,12 +1,15 @@
|
||||
package main
|
||||
|
||||
import "net/http"
|
||||
import (
|
||||
"net/http"
|
||||
"os"
|
||||
)
|
||||
|
||||
func main() {
|
||||
http.Handle(
|
||||
"/",
|
||||
http.FileServer(
|
||||
http.Dir("."),
|
||||
http.Dir(os.Getenv("SM_STATIC")),
|
||||
),
|
||||
)
|
||||
if err := http.ListenAndServe(":8000", nil); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user