mirror of
https://github.com/Damillora/Shioriko.git
synced 2024-11-24 05:17:33 +00:00
fix: default route
This commit is contained in:
parent
2eaf696b53
commit
03dfacc3df
@ -1,8 +1,6 @@
|
|||||||
package app
|
package app
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -11,5 +9,5 @@ func InitializeFrontendRoutes(g *gin.Engine) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func frontendHome(c *gin.Context) {
|
func frontendHome(c *gin.Context) {
|
||||||
c.Redirect(http.StatusFound, "/")
|
c.File("./web/static/index.html")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user