From 20d0ed00613cdb2ec95a2ba429afed26ab799697 Mon Sep 17 00:00:00 2001 From: kyledinh Date: Mon, 7 Jul 2014 18:29:38 -0700 Subject: [PATCH] RunTLS() for http.ListenAndServeTLS run the engine for https --- gin.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gin.go b/gin.go index 6344e680..7bbb0fe5 100644 --- a/gin.go +++ b/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 *********/ /************************************/