Added route for getting the user points stats
This commit is contained in:
5
main.go
5
main.go
@@ -198,6 +198,10 @@ func addTask(c *gin.Context) {
|
|||||||
c.IndentedJSON(http.StatusOK, newTask)
|
c.IndentedJSON(http.StatusOK, newTask)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func getUserPoints(c *gin.Context) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
//release mode
|
//release mode
|
||||||
//gin.SetMode(gin.ReleaseMode)
|
//gin.SetMode(gin.ReleaseMode)
|
||||||
@@ -209,6 +213,7 @@ func main() {
|
|||||||
router.POST("/addTask", addTask)
|
router.POST("/addTask", addTask)
|
||||||
router.GET("/getTasks", getTasks)
|
router.GET("/getTasks", getTasks)
|
||||||
router.GET("/getHistory", getHistory)
|
router.GET("/getHistory", getHistory)
|
||||||
|
router.GET("/getUserPoints", getUserPoints)
|
||||||
|
|
||||||
// page routes
|
// page routes
|
||||||
router.LoadHTMLGlob("frontend/*")
|
router.LoadHTMLGlob("frontend/*")
|
||||||
|
|||||||
Reference in New Issue
Block a user