mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-11-04 19:32:17 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			243 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			243 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package main
 | 
						|
 | 
						|
import (
 | 
						|
	"Open_IM/internal/cms_api"
 | 
						|
	"Open_IM/pkg/utils"
 | 
						|
 | 
						|
	"github.com/gin-gonic/gin"
 | 
						|
)
 | 
						|
 | 
						|
func main() {
 | 
						|
	gin.SetMode(gin.ReleaseMode)
 | 
						|
	router := cms_api.NewGinRouter()
 | 
						|
	router.Use(utils.CorsHandler())
 | 
						|
	router.Run(":" + "8000")
 | 
						|
}
 |