forked from mirror/gin
RunTLS() for http.ListenAndServeTLS
run the engine for https Fixes PR #52
This commit is contained in:
parent
545101811a
commit
f6971041b0
6
gin.go
6
gin.go
|
@ -171,6 +171,12 @@ func (engine *Engine) Run(addr string) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (engine *Engine) RunTLS(addr string, cert string, key string) {
|
||||||
|
if err := http.ListenAndServeTLS(addr, cert, key, engine); err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/************************************/
|
/************************************/
|
||||||
/********** ROUTES GROUPING *********/
|
/********** ROUTES GROUPING *********/
|
||||||
/************************************/
|
/************************************/
|
||||||
|
|
Loading…
Reference in New Issue