-
Notifications
You must be signed in to change notification settings - Fork 555
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27533 from guardian/ei/reinstate-hb-endpoint
Reinstate commercial/api/hb endpoint
- Loading branch information
Showing
7 changed files
with
36 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
commercial/app/controllers/PrebidAnalyticsController.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package commercial.controllers | ||
|
||
import common.GuLogging | ||
import conf.Configuration.commercial.prebidAnalyticsStream | ||
import conf.switches.Switches | ||
import play.api.mvc._ | ||
|
||
import scala.concurrent.ExecutionContext | ||
|
||
class PrebidAnalyticsController(val controllerComponents: ControllerComponents) extends BaseController with GuLogging { | ||
|
||
private implicit val ec: ExecutionContext = controllerComponents.executionContext | ||
|
||
def insert(): Action[String] = | ||
Action(parse.text) { implicit request => | ||
Analytics.storeJsonBody(Switches.prebidAnalytics, prebidAnalyticsStream, log)(request.body) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters