This commit is contained in:
2023-12-07 22:37:30 +08:00
parent 7362a1e5d8
commit 81e5769bef
3 changed files with 6 additions and 3 deletions

View File

@ -2,6 +2,7 @@ package api
import (
"fmt"
"git.rouggy.com/rouggy/RaceBot/controllers"
"git.rouggy.com/rouggy/RaceBot/internal/domain"
"github.com/gin-gonic/gin"
@ -21,7 +22,7 @@ func (s *Server) Start(cfg *domain.Config) error {
gin.SetMode(gin.ReleaseMode)
r := gin.Default()
s.SetupRoutes(r)
fmt.Println("Server is running on port:", cfg.Port)
fmt.Println("[Server ]Server is running on port", cfg.Port)
err := r.Run(s.listenAddr)
if err != nil {
return err