diff --git a/html/index.html b/html/index.html
new file mode 100644
index 0000000..39e338a
--- /dev/null
+++ b/html/index.html
@@ -0,0 +1,10 @@
+
+
+
+
+ GiacPoints
+
+
+ Hello web
+
+
\ No newline at end of file
diff --git a/main.go b/main.go
index 8ae573a..ab4aea9 100644
--- a/main.go
+++ b/main.go
@@ -161,12 +161,23 @@ func addTask(c *gin.Context) {
func main() {
router := gin.Default()
+
+ // api routes
router.POST("/login", login)
router.POST("/completeTask", completeTask)
router.POST("/addTask", addTask)
router.GET("/getTasks", getTasks)
router.GET("/getHistory", getHistory)
+ // page routes
+ router.LoadHTMLGlob("html/*")
+ router.GET("/", func(c *gin.Context) {
+ c.HTML(http.StatusOK, "index.html", gin.H{})
+ })
+
+ // asset routes
+ router.Static("/scripts", "./scripts")
+
router.Run("localhost:8080")
}