Move to git.themmonk.com
This commit is contained in:
21
internal/httpserver/start.go
Normal file
21
internal/httpserver/start.go
Normal file
@@ -0,0 +1,21 @@
|
||||
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()
|
||||
|
||||
RegisterWebui()
|
||||
|
||||
http.ListenAndServe(Addr+":"+Port, nil)
|
||||
}
|
||||
Reference in New Issue
Block a user