Feat/dashboard (#105)
This commit is contained in:
14
server/handlers/root.go
Normal file
14
server/handlers/root.go
Normal file
@@ -0,0 +1,14 @@
|
||||
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")
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user