mirror of
https://github.com/DorkSquadRR/DorkNet.git
synced 2026-10-25 23:18:44 -07:00
70980bf3b6
- Implemented ProgressionEventsController to handle progression event retrieval and active events. - Created RoomConsumablesController for listing and purchasing room consumables. - Developed RoomCurrenciesController for managing room currencies, including creation, updates, and balance retrieval. - Added RoomEarningsDistributionsController to fetch earnings distribution data for rooms. - Introduced ScreenShareReportsController for reporting screen share incidents. - Established SubscriptionSeasonsController to provide current subscription season details and rewards. - Launched UgcPurchasablesController for managing user-generated content purchasables, including bulk operations. - Added new data entities for customization and room economy, including custom avatar items, room currencies, and UGC purchasables.
19 lines
485 B
C#
19 lines
485 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
using DorkNet.Models.Config;
|
|
using DorkNet.Server.Services;
|
|
|
|
namespace DorkNet.Server.Controllers.API.Config.V2;
|
|
|
|
[ApiController]
|
|
[Route("api/config")]
|
|
[Route("api/[controller]/v2")]
|
|
public class ConfigController(ConfigService configService) : ControllerBase
|
|
{
|
|
[HttpGet]
|
|
public ActionResult<RecRoomConfig> GetConfig()
|
|
{
|
|
var baseUrl = $"{Request.Scheme}://{Request.Host}";
|
|
return Ok(configService.GetConfig(baseUrl));
|
|
}
|
|
}
|