diff --git a/frontend/index.css b/frontend/index.css new file mode 100644 index 0000000..e69de29 diff --git a/frontend/index.html b/frontend/index.html new file mode 100644 index 0000000..7b2860f --- /dev/null +++ b/frontend/index.html @@ -0,0 +1,24 @@ + + + + + GiacPoints + + + + + +
+
+
+
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/html/index.html b/html/index.html deleted file mode 100644 index 9cacddd..0000000 --- a/html/index.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - GiacPoints - - - -

Hello web

- - \ No newline at end of file diff --git a/main b/main index 4fc10ae..dca41ea 100755 Binary files a/main and b/main differ diff --git a/main.go b/main.go index ab4aea9..66cc497 100644 --- a/main.go +++ b/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")