an_toni.a
08/01/2024, 2:59 PMan_toni.a
08/02/2024, 7:34 AMNomi
08/02/2024, 10:42 AMan_toni.a
08/02/2024, 11:45 AMan_toni.a
08/02/2024, 11:45 AMan_toni.a
08/02/2024, 11:47 AMan_toni.a
08/02/2024, 11:48 AMNomi
08/02/2024, 11:53 AMan_toni.a
08/02/2024, 11:58 AMan_toni.a
08/02/2024, 11:58 AMan_toni.a
08/02/2024, 11:58 AMan_toni.a
08/02/2024, 12:00 PMan_toni.a
08/02/2024, 12:02 PMan_toni.a
08/02/2024, 12:04 PMNomi
08/02/2024, 12:05 PMJurjen
08/05/2024, 5:12 AMpublicApiEndpoints:
- hostname: {projectname}-{environment}-admin-endpoint.p1.metaplay.io
target:
root: "/webhook/"
I'd recommend to keep the -endpoint suffix and the /webhook/ root for now.
2. The ASP.NET controller needs to inherit from MetaplayWebhookController and the routes need to specify [AllowAnonymous] .
For example a very simple implementation:
public class ExampleWebhookController : MetaplayWebhookController
{
public ExampleWebhookController(ILogger<ExampleWebhookController> logger, IActorRef adminApi) : base(logger, adminApi)
{
}
[HttpGet("publicEndpoint")]
[AllowAnonymous]
public async Task<string> ExamplePublicEndpoint()
{
return "Hey, you can access this.";
}
}
Deploying this should then redirect https://{projectname}-{environment}-admin-endpoint.p1.metaplay.io/publicEndpoint to your controller. Keep in mind that your DNS might take a while to update, I had to manually flush mine on windows for it to work.an_toni.a
08/06/2024, 8:26 AMJurjen
08/06/2024, 8:28 AMan_toni.a
08/07/2024, 9:57 AMan_toni.a
08/07/2024, 9:59 AMJurjen
08/07/2024, 9:59 AMan_toni.a
08/07/2024, 10:00 AMan_toni.a
08/07/2024, 10:00 AMan_toni.a
08/07/2024, 10:01 AMJurjen
08/07/2024, 10:02 AMan_toni.a
08/07/2024, 10:02 AMan_toni.a
08/07/2024, 10:03 AMJurjen
08/07/2024, 10:04 AMJurjen
08/07/2024, 10:04 AMan_toni.a
08/07/2024, 10:07 AMJurjen
08/07/2024, 10:33 AMan_toni.a
08/07/2024, 10:41 AMan_toni.a
08/07/2024, 10:43 AM