2024-02-14 17:39:30 +00:00
|
|
|
package main
|
|
|
|
|
2024-02-14 18:39:12 +00:00
|
|
|
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)
|
|
|
|
}
|
|
|
|
}
|