authorizer/server/handlers/root.go

15 lines
249 B
Go
Raw Normal View History

2022-01-17 06:02:13 +00:00
package handlers
import (
"net/http"
"github.com/gin-gonic/gin"
)
// RootHandler is the handler for / root route.
func RootHandler() gin.HandlerFunc {
return func(c *gin.Context) {
c.Redirect(http.StatusTemporaryRedirect, "/dashboard")
}
}