(format string)
| 160 | } |
| 161 | |
| 162 | func getContentType(format string) string { |
| 163 | if format == "verbose_json" || format == "json" { |
| 164 | return "application/json" |
| 165 | } |
| 166 | |
| 167 | return "text/plain; charset=utf-8" |
| 168 | } |
| 169 | |
| 170 | func getTranscriptionsHandler(prod bool, client http.Client, e estimator) gin.HandlerFunc { |
| 171 | return func(c *gin.Context) { |
no outgoing calls
no test coverage detected