mirror of
https://git.recroomarchive.org/RecRoomArchive/RRAC.git
synced 2026-09-08 14:41:25 -07:00
Initialize repository
Added basic info to get in game for like...August 2016 ;-; It's not much but it's a start
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user