Browse Source

add operation req

tags/v1.21.12.1
lewis 4 years ago
parent
commit
206ceb20da
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      routers/routes/routes.go

+ 2
- 2
routers/routes/routes.go View File

@@ -540,13 +540,13 @@ func RegisterRoutes(m *macaron.Macaron) {
}, adminReq)
// ***** END: Admin *****

//operationReq := context.Toggle(&context.ToggleOptions{SignInRequired: true, OperationRequired: true})
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 *****

m.Group("", func() {


Loading…
Cancel
Save