ADD: added basic cli tool and updated the login modal

This commit is contained in:
hwinkel
2025-12-15 00:41:30 +01:00
parent a047d57824
commit 7ec17e1e8b
15 changed files with 199 additions and 103 deletions

View File

@@ -55,6 +55,10 @@ func StartServer(cfg *config.Config) {
auth.Login(c, db) // Pass the actual DB connection instead of nil
})
router.POST("/register", func(c *gin.Context) {
auth.Register(c, db)
})
router.Run(":" + cfg.Port)
}