mirror of
https://git.recroomarchive.org/RecRoomArchive/RRAC.git
synced 2026-09-08 14:41:25 -07:00
387ec7ba89
Added basic info to get in game for like...August 2016 ;-; It's not much but it's a start
25 lines
877 B
C#
25 lines
877 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
using RecRoomArchive.Models.API.Config;
|
|
using RecRoomArchive.Services;
|
|
|
|
namespace RecRoomArchive.Controllers.API.Config.V2
|
|
{
|
|
/// <summary>
|
|
/// Configs that control Rec Room. These configs include data like Amplitude, MessageOfTheDay, Objectives, etc...
|
|
/// </summary>
|
|
[Route(template: "api/[controller]/v2")]
|
|
[ApiController]
|
|
public class ConfigController(ConfigService configService) : ControllerBase
|
|
{
|
|
/// <summary>
|
|
/// Gets the RecRoomConfig, containing lots of data on how the game should function
|
|
/// </summary>
|
|
/// <returns>RecRoomConfig</returns>
|
|
[HttpGet]
|
|
public async Task<ActionResult<RecRoomConfig>> GetRecRoomConfig()
|
|
{
|
|
var recRoomConfig = await configService.GetRecRoomConfig();
|
|
return Ok(recRoomConfig);
|
|
}
|
|
}
|
|
} |