Basic frontend login ui

This commit is contained in:
2023-07-17 16:52:39 +01:00
parent af171b3344
commit f5f19f6dd4
5 changed files with 26 additions and 12 deletions

View File

@@ -170,10 +170,11 @@ func main() {
router.GET("/getHistory", getHistory)
// page routes
router.LoadHTMLGlob("html/*")
router.LoadHTMLGlob("frontend/*")
router.GET("/", func(c *gin.Context) {
c.HTML(http.StatusOK, "index.html", gin.H{})
})
router.Static("/", "./frontend")
// asset routes
router.Static("/scripts", "./scripts")