func NewRouter(_service Service) *gin.Engine {
	service = _service
	router := gin.Default()
	router.LoadHTMLGlob("templates/*")
	router.GET("/", landing)
	router.POST("/new", newEntry)
	router.GET("/r/:shortId", defaultRedirect)
	router.GET("/c/:shortId", clientSideRedirect)
	router.GET("/s/:shortId", serverSideRedirect)
	router.GET("/stats/:shortId", showStats)
	router.StaticFile("/img/paytm.png", "./static/paytm.png")
	router.NoRoute(noRouteHandler)
	return router
}
NewRouter instantiates a new gin Router
package main
import (
	"github.com/gin-gonic/gin"
	"net/http"
)
var service Service