mirror of
https://github.com/kaaninchen/Laterna.git
synced 2026-09-17 19:12:48 +00:00
rethought the auth system and realized that it was bullshit
This commit is contained in:
@@ -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:")
|
||||
|
||||
Reference in New Issue
Block a user