Basic frontend login ui
This commit is contained in:
3
main.go
3
main.go
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user