From 31d965bf12c6c6c6f61f8f65e7c14bb35ee4b5ac Mon Sep 17 00:00:00 2001 From: Adhityaa Date: Sun, 3 Jun 2018 17:09:49 +0530 Subject: [PATCH] router_static.go: redirect / to login --- api/router_static.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/router_static.go b/api/router_static.go index ba00230..a15c980 100644 --- a/api/router_static.go +++ b/api/router_static.go @@ -88,5 +88,7 @@ func initStaticRouter(router *mux.Router) error { }) } + router.HandleFunc("/", redirectLogin) + return nil }