Restored lost files and now serving from Go
Signed-off-by: Louis Hollingworth <louis@hollingworth.nl>
This commit is contained in:
parent
dd67fc967a
commit
f439090fa2
22 changed files with 646 additions and 2 deletions
|
|
@ -1,3 +1,17 @@
|
|||
package main
|
||||
|
||||
func main() {}
|
||||
import (
|
||||
"github.com/gorilla/mux"
|
||||
"net/http"
|
||||
log "github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
func main() {
|
||||
r := mux.NewRouter()
|
||||
|
||||
r.PathPrefix("/").Handler(http.FileServer(http.Dir("./dist")))
|
||||
|
||||
if err := http.ListenAndServe(":3000", r); err != nil {
|
||||
log.Fatalf("failed to start server: %v", err)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue