You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Open-IM-Server/cmd/open_im_cms_api/main.go

18 lines
301 B

3 years ago
package main
import (
"Open_IM/internal/cms_api"
"Open_IM/pkg/utils"
3 years ago
"fmt"
3 years ago
"github.com/gin-gonic/gin"
)
func main() {
gin.SetMode(gin.ReleaseMode)
router := cms_api.NewGinRouter()
router.Use(utils.CorsHandler())
3 years ago
fmt.Println("start cms api server, port: ", 8000)
3 years ago
router.Run(":" + "8000")
}