restructure: console→client-console, add admin-console skeleton, move docs to doc/

This commit is contained in:
“Naeel”
2026-05-25 09:48:55 +04:00
parent 3e36ff13a8
commit 34a8068da5
110 changed files with 615 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
package main
package main
import (
"log"
"net/http"
"os"
"admin-console/internal/api"
)
func main() {
adminToken := os.Getenv("ADMIN_TOKEN")
if adminToken == "" {
log.Fatal("ADMIN_TOKEN env variable is required")
}
srv := api.NewServer(adminToken)
mux := http.NewServeMux()
srv.RegisterRoutes(mux)
addr := ":8091"
log.Printf("admin-console starting on %s", addr)
if err := http.ListenAndServe(addr, mux); err != nil {
log.Fatalf("server error: %v", err)
}
}