aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/route/route.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/route/route.go')
-rw-r--r--server/route/route.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/route/route.go b/server/route/route.go
index 885f0bc..06d095a 100644
--- a/server/route/route.go
+++ b/server/route/route.go
@@ -11,7 +11,8 @@ import (
"github.com/gorilla/mux"
)
-func GetRoute(router *mux.Router, name string, args ...interface{}) string {
+// Path returns the defined route based on given arguments.
+func Path(router *mux.Router, name string, args ...interface{}) string {
route := router.Get(name)
if route == nil {
log.Fatalln("Route not found:", name)