Move to git.themmonk.com

This commit is contained in:
the-m-monk
2025-12-29 22:05:31 +10:00
parent b63049e91c
commit f4944ab3b3
24 changed files with 701 additions and 0 deletions

View 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)
}