|
|
|
@@ -589,6 +589,17 @@ func RegisterRoutes(m *macaron.Macaron) { |
|
|
|
m.Post("/delete", admin.DeleteNotices) |
|
|
|
m.Post("/empty", admin.EmptyNotices) |
|
|
|
}) |
|
|
|
|
|
|
|
m.Group("/reward/point", func() { |
|
|
|
m.Get("/limiter/list", point.GetPointLimitConfigList) |
|
|
|
m.Post("/limiter/add", bindIgnErr(models.LimitConfigVO{}), point.AddPointLimitConfig) |
|
|
|
}) |
|
|
|
|
|
|
|
m.Group("/task/config", func() { |
|
|
|
m.Get("/list", task.GetTaskConfigList) |
|
|
|
m.Post("/add", bindIgnErr(models.TaskConfigWithLimit{}), task.AddTaskConfig) |
|
|
|
m.Post("/add/batch", bindIgnErr(models.BatchLimitConfigVO{}), task.BatchAddTaskConfig) |
|
|
|
}) |
|
|
|
}, adminReq) |
|
|
|
// ***** END: Admin ***** |
|
|
|
|
|
|
|
@@ -1318,13 +1329,6 @@ func RegisterRoutes(m *macaron.Macaron) { |
|
|
|
|
|
|
|
m.Group("/reward/point", func() { |
|
|
|
m.Get("/account", point.GetPointAccount) |
|
|
|
m.Get("/limiter/list", point.GetPointLimitConfigList) |
|
|
|
m.Post("/limiter/add", bindIgnErr(models.LimitConfigVO{}), point.AddPointLimitConfig) |
|
|
|
}, reqSignIn) |
|
|
|
|
|
|
|
m.Group("/task/config", func() { |
|
|
|
m.Get("/list", task.GetTaskConfigList) |
|
|
|
m.Post("/add", bindIgnErr(models.TaskConfigWithLimit{}), task.AddTaskConfig) |
|
|
|
}, reqSignIn) |
|
|
|
|
|
|
|
if setting.API.EnableSwagger { |
|
|
|
|