mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-15 04:57:07 +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)
|
http.ListenAndServe(addr, engine)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (engine *Engine) RunTLS(addr string, cert string, key string) {
|
||||||
|
http.ListenAndServeTLS(addr, cert, key, engine)
|
||||||
|
}
|
||||||
|
|
||||||
/************************************/
|
/************************************/
|
||||||
/********** ROUTES GROUPING *********/
|
/********** ROUTES GROUPING *********/
|
||||||
/************************************/
|
/************************************/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user