rethought the auth system and realized that it was bullshit

This commit is contained in:
Siesta
2025-07-17 22:14:11 +02:00
parent 77120bce29
commit fe9841b4e1
8 changed files with 53 additions and 86 deletions
+2 -3
View File
@@ -12,11 +12,10 @@ import (
func StartHTTPServer() {
router := http.NewServeMux()
routes.RegisterUserRoutes(router)
routes.RegisterAdminRoutes(router)
routes.RegisterRoutes(router)
if !db.ControllerExists(0) {
adminToken := db.CreateAdmin()
adminToken := db.CreateController(0)
fmt.Println("IMPORTANT")
fmt.Println("- - - - - - - - - - - - - - - - - - ")
fmt.Println("ADMIN TOKEN:")