1
0
mirror of https://github.com/matrix-org/dendrite.git synced 2024-06-14 21:16:39 +00:00
matrix-org.dendrite/src/github.com/matrix-org/dendrite/clientapi/clientapi.go

20 lines
405 B
Go
Raw Normal View History

package main
import (
"github.com/matrix-org/dendrite/clientapi/routing"
"net/http"
"os"
log "github.com/Sirupsen/logrus"
)
func main() {
bindAddr := os.Getenv("BIND_ADDRESS")
if bindAddr == "" {
log.Panic("No BIND_ADDRESS environment variable found.")
}
log.Info("Starting clientapi")
routing.Setup(http.DefaultServeMux, http.DefaultClient)
log.Fatal(http.ListenAndServe(bindAddr, nil))
}