Files
DorkNet/DorkNet.Server/Controllers/API/PurchaseCampaign/PurchaseCampaignController.cs
T
Alexa 3d7d7ebdf1 feat: Enhance API endpoints and add new features
- Added support for v3 gift generation in AvatarGiftsController.
- Updated club report messages to include club IDs for better tracking in CompatibilityFeatureController.
- Introduced new endpoints for voice moderation and whitelisted emojis in ConfigController.
- Modified image retrieval logic to support single image lookups by name in ImagesController.
- Adjusted incentivized referrals to return an empty array when no rewards are available in IncentivizedReferralsController.
- Implemented trial invention functionality in InventionsController.
- Added top creators today endpoint in PlayerSubscriptionsController.
- Expanded room earnings distribution functionality in RoomEarningsDistributionsController.
- Enhanced room search capabilities with pagination in RoomsController.
- Improved account name generation options in AccountsController.
- Added party invite privacy settings in PlayerSettingsController.
- Created CommentsController for handling unread comment counts.
- Established PurchaseCampaignController for handling purchase campaign telemetry.
2026-07-12 22:18:58 +03:00

23 lines
893 B
C#

using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace DorkNet.Server.Controllers.API.PurchaseCampaign;
/// <summary>
/// Purchase-campaign impression telemetry. Client contract (RecNet.Runtime
/// <c>JHAEJJEGPKJ(int)</c>) is a fire-and-forget POST carrying the campaign
/// id; the return type is the response handle whose body the client ignores.
/// DorkNet doesn't run ad/purchase campaigns, so there's nothing to record —
/// we acknowledge the impression so the client's promise resolves instead of
/// 404-rejecting. This is a genuine no-op telemetry sink, not a stub masking
/// an unimplemented feature.
/// </summary>
[ApiController]
[Authorize]
public class PurchaseCampaignController : ControllerBase
{
[HttpPost("/purchasecampaign/shown")]
[HttpPost("/purchasecampaign/shown/{campaignId:int}")]
public IActionResult Shown() => Ok();
}