mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-14 12:12:12 +08:00
RunTLS() for http.ListenAndServeTLS
run the engine for https
This commit is contained in:
parent
df22fa4489
commit
20d0ed0061
4
gin.go
4
gin.go
@ -118,6 +118,10 @@ func (engine *Engine) Run(addr string) {
|
||||
http.ListenAndServe(addr, engine)
|
||||
}
|
||||
|
||||
func (engine *Engine) RunTLS(addr string, cert string, key string) {
|
||||
http.ListenAndServeTLS(addr, cert, key, engine)
|
||||
}
|
||||
|
||||
/************************************/
|
||||
/********** ROUTES GROUPING *********/
|
||||
/************************************/
|
||||
|
Loading…
x
Reference in New Issue
Block a user