mirror of
https://github.com/Damillora/Shioriko.git
synced 2024-11-25 05:27:32 +00:00
21 lines
357 B
Go
21 lines
357 B
Go
|
package app
|
||
|
|
||
|
import (
|
||
|
"net/http"
|
||
|
|
||
|
"github.com/Damillora/Shioriko/pkg/config"
|
||
|
"github.com/gin-gonic/gin"
|
||
|
)
|
||
|
|
||
|
func InitializeFrontendRoutes(g *gin.Engine) {
|
||
|
g.NoRoute(frontendHome)
|
||
|
}
|
||
|
|
||
|
func frontendHome(c *gin.Context) {
|
||
|
baseURL := config.CurrentConfig.BaseURL
|
||
|
c.HTML(http.StatusOK, "index.html", gin.H{
|
||
|
"title": "Home",
|
||
|
"base_url": baseURL,
|
||
|
})
|
||
|
}
|