|
|
|
@@ -594,6 +594,16 @@ func RegisterRoutes(m *macaron.Macaron) { |
|
|
|
m.Post("/empty", admin.EmptyNotices) |
|
|
|
}) |
|
|
|
|
|
|
|
}, adminReq) |
|
|
|
// ***** END: Admin ***** |
|
|
|
|
|
|
|
operationReq := context.Toggle(&context.ToggleOptions{SignInRequired: true, OperationRequired: true}) |
|
|
|
|
|
|
|
// ***** START: Operation ***** |
|
|
|
m.Group("/operation", func() { |
|
|
|
m.Get("/config/recommend_org", operation.Organizations) |
|
|
|
m.Post("/config/recommend_org", bindIgnErr(operation.OrgInfos{}), operation.UpdateRecommendOrganizations) |
|
|
|
|
|
|
|
m.Group("/reward/point", func() { |
|
|
|
m.Get("/limiter/list", point.GetPointLimitConfigList) |
|
|
|
m.Post("/limiter/add", bindIgnErr(models.LimitConfigVO{}), point.AddPointLimitConfig) |
|
|
|
@@ -606,16 +616,6 @@ func RegisterRoutes(m *macaron.Macaron) { |
|
|
|
m.Post("/add", bindIgnErr(models.TaskConfigWithLimit{}), task.AddTaskConfig) |
|
|
|
m.Post("/add/batch", bindIgnErr(models.BatchLimitConfigVO{}), task.BatchAddTaskConfig) |
|
|
|
}) |
|
|
|
|
|
|
|
}, adminReq) |
|
|
|
// ***** END: Admin ***** |
|
|
|
|
|
|
|
operationReq := context.Toggle(&context.ToggleOptions{SignInRequired: true, OperationRequired: true}) |
|
|
|
|
|
|
|
// ***** START: Operation ***** |
|
|
|
m.Group("/operation", func() { |
|
|
|
m.Get("/config/recommend_org", operation.Organizations) |
|
|
|
m.Post("/config/recommend_org", bindIgnErr(operation.OrgInfos{}), operation.UpdateRecommendOrganizations) |
|
|
|
}, operationReq) |
|
|
|
// ***** END: Operation ***** |
|
|
|
|
|
|
|
|