cityuni-webserver/pageHandler/page-handler.go

18 lines
298 B
Go
Raw Normal View History

2022-07-14 18:07:07 +01:00
package pageHandler
import (
"github.com/gorilla/mux"
"golang.captainalm.com/cityuni-webserver/conf"
"net/http"
)
var theRouter *mux.Router
func GetRouter(config conf.ConfigYaml) http.Handler {
if theRouter == nil {
theRouter = mux.NewRouter()
//Mux routing stuff
}
return theRouter
}