Added route for getting the user points stats

This commit is contained in:
chopster44 committed 2023-07-21 22:41:50 +01:00
1 parent fb9e3130e0
commit 31913d0b94
1 file changed
+5
+5
View File
@@ -198,6 +198,10 @@ func addTask(c *gin.Context) {
c.IndentedJSON(http.StatusOK, newTask)
}
func getUserPoints(c *gin.Context) {
}
func main() {
//release mode
//gin.SetMode(gin.ReleaseMode)
@@ -209,6 +213,7 @@ func main() {
router.POST("/addTask", addTask)
router.GET("/getTasks", getTasks)
router.GET("/getHistory", getHistory)
router.GET("/getUserPoints", getUserPoints)
// page routes
router.LoadHTMLGlob("frontend/*")