about summary refs log tree commit diff
path: root/third_party/gerrit-queue/frontend/frontend.go
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/gerrit-queue/frontend/frontend.go')
-rw-r--r--third_party/gerrit-queue/frontend/frontend.go10
1 files changed, 4 insertions, 6 deletions
diff --git a/third_party/gerrit-queue/frontend/frontend.go b/third_party/gerrit-queue/frontend/frontend.go
index f1c7857ef87c..f00bc414a1c7 100644
--- a/third_party/gerrit-queue/frontend/frontend.go
+++ b/third_party/gerrit-queue/frontend/frontend.go
@@ -8,7 +8,6 @@ import (
 
 	"html/template"
 
-	"github.com/gin-gonic/gin"
 	"github.com/rakyll/statik/fs"
 
 	"github.com/apex/log"
@@ -51,12 +50,11 @@ func loadTemplate(templateNames []string, funcMap template.FuncMap) (*template.T
 
 // MakeFrontend returns a http.Handler
 func MakeFrontend(rotatingLogHandler *misc.RotatingLogHandler, gerritClient *gerrit.Client, runner *submitqueue.Runner) http.Handler {
-	router := gin.Default()
-
 	projectName := gerritClient.GetProjectName()
 	branchName := gerritClient.GetBranchName()
 
-	router.GET("/", func(c *gin.Context) {
+	mux := http.NewServeMux()
+	mux.HandleFunc("/", func(w http.ResponseWriter, _ *http.Request) {
 		var wipSerie *gerrit.Serie = nil
 		HEAD := ""
 		currentlyRunning := runner.IsCurrentlyRunning()
@@ -99,7 +97,7 @@ func MakeFrontend(rotatingLogHandler *misc.RotatingLogHandler, gerritClient *ger
 			"changeset.tmpl.html",
 		}, funcMap))
 
-		tmpl.ExecuteTemplate(c.Writer, "index.tmpl.html", gin.H{
+		tmpl.ExecuteTemplate(w, "index.tmpl.html", map[string]interface{}{
 			// Config
 			"projectName": projectName,
 			"branchName":  branchName,
@@ -113,5 +111,5 @@ func MakeFrontend(rotatingLogHandler *misc.RotatingLogHandler, gerritClient *ger
 			"memory": rotatingLogHandler,
 		})
 	})
-	return router
+	return mux
 }