23 lines
412 B
Go
23 lines
412 B
Go
package httpserver
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"opal/internal/config"
|
|
"opal/internal/httpserver/api"
|
|
)
|
|
|
|
func Start() {
|
|
Addr := config.FetchValue("/server.cfg", "address", true)
|
|
Port := config.FetchValue("/server.cfg", "port", true)
|
|
|
|
api.RegisterMiscEndpoints()
|
|
api.RegisterAuthEndpoints()
|
|
api.RegisterLibraryEndpoints()
|
|
api.RegisterHlsEndpoints()
|
|
|
|
RegisterWebui()
|
|
|
|
http.ListenAndServe(Addr+":"+Port, nil)
|
|
}
|