RunTLS() for http.ListenAndServeTLS

run the engine for https

Fixes PR #52
This commit is contained in:
kyledinh 2014-07-07 18:29:38 -07:00 committed by Manu Mtz-Almeida
parent 545101811a
commit f6971041b0
1 changed files with 6 additions and 0 deletions

6
gin.go
View File

@ -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 *********/
/************************************/