Files
wiscast/main.go
AlexandreRouma 140bc3c3f5 initial commit
2025-10-31 18:38:33 -04:00

22 lines
456 B
Go

package main
// Packages
import "log"
import "net/http"
// import "os"
func main() {
// Load the configuration from environment variables
// TODO
// Create a handler for the static website
static := http.FileServer(http.Dir("./www"))
http.Handle("/", static)
// Create a handler for the signaling backend
// http.HandleFunc("/sig", wsHandler)
// Run the server
err := http.ListenAndServe(":3000", nil)
if( err != nil) { log.Fatal(err) }
}