ADD: added basic cli tool and updated the login modal
This commit is contained in:
@@ -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)
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user