RunTLS() for http.ListenAndServeTLS

run the engine for https
This commit is contained in:
kyledinh 2014-07-07 18:29:38 -07:00
parent df22fa4489
commit 20d0ed0061

4
gin.go
View File

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