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)
|
||||
}
|
||||
|
||||
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/*")
|
||||
|
||||
Reference in New Issue
Block a user