mirror of
https://github.com/AlexandreRouma/wiscast.git
synced 2026-04-20 08:22:42 +00:00
initial commit
This commit is contained in:
22
main.go
Normal file
22
main.go
Normal file
@@ -0,0 +1,22 @@
|
||||
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) }
|
||||
}
|
||||
Reference in New Issue
Block a user