Skip to content

Commit

Permalink
UPPSF-530 Adding code comments for the flow behavious
Browse files Browse the repository at this point in the history
  • Loading branch information
elizhuh committed Jul 11, 2019
1 parent 7c8a9c0 commit 67e7cf3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ func setupServiceHandler(s content.Unroller, sc content.ServiceConfig, flow stri
r.HandleFunc("/internalcontent-preview", ch.GetInternalContentPreview).Methods("POST")
checks = []fthealth.Check{sc.ContentStoreCheck(), sc.ContentPreviewCheck()}
} else {
// the default value for flow is "read", there are no other cases other than "read" and "preview"
// the purpose for such is setup is that the service can be run wothout specifiyng flow for easier testing (when a dependacy)
r.HandleFunc("/content", ch.GetContent).Methods("POST")
r.HandleFunc("/internalcontent", ch.GetInternalContent).Methods("POST")
checks = []fthealth.Check{sc.ContentStoreCheck()}
Expand Down

0 comments on commit 67e7cf3

Please sign in to comment.