update
This commit is contained in:
parent
81e5769bef
commit
aa39764a99
@ -22,7 +22,7 @@ func (s *Server) Start(cfg *domain.Config) error {
|
|||||||
gin.SetMode(gin.ReleaseMode)
|
gin.SetMode(gin.ReleaseMode)
|
||||||
r := gin.Default()
|
r := gin.Default()
|
||||||
s.SetupRoutes(r)
|
s.SetupRoutes(r)
|
||||||
fmt.Println("[Server ]Server is running on port", cfg.Port)
|
fmt.Println("[Server] Server is running on port", cfg.Port)
|
||||||
err := r.Run(s.listenAddr)
|
err := r.Run(s.listenAddr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Reference in New Issue
Block a user